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
/
GlobalOpt
/
trivialstore.ll
blob
a662565cd24fb092aab2e12ddf716dba82df53b2
1
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep G
2
3
@G = internal global i32 17 ; <i32*> [#uses=3]
4
5
define void @foo() {
6
store i32 17, i32* @G
7
ret void
8
}
9
10
define i32 @bar() {
11
%X = load i32* @G ; <i32> [#uses=1]
12
ret i32 %X
13
}
14
15
define internal void @dead() {
16
store i32 123, i32* @G
17
ret void
18
}
19