projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
A loop latch phi node may have uses inside loop, not just in loop header.
[oota-llvm.git]
/
test
/
Transforms
/
GlobalOpt
/
malloc-promote-1.llx
1
; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep global
2
3
%G = internal global int* null
4
5
void %init() {
6
%P = malloc int
7
store int* %P, int** %G
8
9
%GV = load int** %G
10
store int 0, int* %GV
11
ret void
12
}
13
14
int %get() {
15
%GV = load int** %G
16
%V = load int* %GV
17
ret int %V
18
}