projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugg...
[oota-llvm.git]
/
test
/
Transforms
/
GlobalOpt
/
deadglobal.ll
1
; RUN: opt < %s -globalopt -S | FileCheck %s
2
3
@G1 = internal global i32 123 ; <i32*> [#uses=1]
4
5
; CHECK-NOT: @G1
6
; CHECK: @G2
7
; CHECK-NOT: @G3
8
9
define void @foo1() {
10
; CHECK: define void @foo
11
; CHECK-NEXT: ret
12
store i32 1, i32* @G1
13
ret void
14
}
15
16
@G2 = linkonce_odr constant i32 42
17
18
define void @foo2() {
19
; CHECK-LABEL: define void @foo2(
20
; CHECK-NEXT: store
21
store i32 1, i32* @G2
22
ret void
23
}
24
25
@G3 = linkonce_odr constant i32 42