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
/
Transforms
/
SCCP
/
apint-ipsccp3.ll
blob
c07a54f8f6f873d17446aba3ecd13c5b5a4ecf9b
1
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
2
3
@G = internal global i66 undef
4
5
6
7
define void @foo() {
8
%X = load i66* @G
9
store i66 %X, i66* @G
10
ret void
11
}
12
13
define i66 @bar() {
14
%V = load i66* @G
15
%C = icmp eq i66 %V, 17
16
br i1 %C, label %T, label %F
17
T:
18
store i66 17, i66* @G
19
ret i66 %V
20
F:
21
store i66 123, i66* @G
22
ret i66 0
23
}