repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Transforms] Silence a warning in SROA.cpp (NFC)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalOpt
/
trivialstore.ll
blob
f56083a069f5db0960a963f0b25fa086efab7fb6
1
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
2
; CHECK-NOT: G
3
4
@G = internal global i32 17 ; <ptr> [#uses=3]
5
6
define void @foo() {
7
store i32 17, ptr @G
8
ret void
9
}
10
11
define i32 @bar() {
12
%X = load i32, ptr @G ; <i32> [#uses=1]
13
ret i32 %X
14
}
15
16
define internal void @dead() {
17
store i32 123, ptr @G
18
ret void
19
}