repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[llvm-dlltool] Respect NONAME keyword
[llvm-complete.git]
/
test
/
Transforms
/
GlobalOpt
/
basictest.ll
blob
d5294820abe92b8e9f43cf790d1f73e5447bbab5
1
; RUN: opt < %s -globalopt -S | FileCheck %s
2
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
3
4
; CHECK-NOT: global
5
@X = internal global i32 4 ; <i32*> [#uses=1]
6
7
define i32 @foo() {
8
%V = load i32, i32* @X ; <i32> [#uses=1]
9
ret i32 %V
10
}