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
/
load-store-global.llx
1
; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep G
2
3
%G = internal global int 17
4
5
void %foo() {
6
%V = load int* %G
7
store int %V, int* %G ;; Doesn't change the value
8
ret void
9
}
10
int %bar() {
11
%X = load int* %G
12
ret int %X
13
}
14