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
[InstCombine] Signed saturation tests. NFC
[llvm-complete.git]
/
test
/
Transforms
/
GlobalOpt
/
trivialstore.ll
blob
9a490879a41fe33d0df7d89d952732ccfe1a6168
1
; RUN: opt < %s -globalopt -S | FileCheck %s
2
; CHECK-NOT: G
3
4
@G = internal global i32 17 ; <i32*> [#uses=3]
5
6
define void @foo() {
7
store i32 17, i32* @G
8
ret void
9
}
10
11
define i32 @bar() {
12
%X = load i32, i32* @G ; <i32> [#uses=1]
13
ret i32 %X
14
}
15
16
define internal void @dead() {
17
store i32 123, i32* @G
18
ret void
19
}