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
Factor out code that optimize loop terminating condition.
[llvm/msp430.git]
/
test
/
Transforms
/
GlobalOpt
/
basictest.ll
blob
1c3bdbbc495c81757a2e6c155a0aa493d7953da1
1
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
2
3
@X = internal global i32 4 ; <i32*> [#uses=1]
4
5
define i32 @foo() {
6
%V = load i32* @X ; <i32> [#uses=1]
7
ret i32 %V
8
}
9