repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
Analysis
/
Andersens
/
modreftest.ll
blob
f86c7f74d17f7c7daafd35a34e34b69012c16fba
1
; RUN: llvm-as < %s | opt -anders-aa -gvn -instcombine | llvm-dis \
2
; RUN: | grep {ret i1 true}
3
4
@G = internal global i32* null
5
declare i32 *@ext()
6
7
define i1 @bar() {
8
%V1 = load i32** @G
9
%X2 = call i32 *@ext()
10
%V2 = load i32** @G
11
store i32* %X2, i32** @G
12
13
%C = icmp eq i32* %V1, %V2
14
ret i1 %C
15
}