1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Transforms/GlobalOpt/deadglobal.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

29 lines
521 B
LLVM

; RUN: opt < %s -globalopt -S | FileCheck %s
@G1 = internal global i32 123 ; <i32*> [#uses=1]
@A1 = internal alias i32, i32* @G1
; CHECK-NOT: @G1
; CHECK: @G2
; CHECK-NOT: @G3
; CHECK-NOT: @A1
define void @foo1() {
; CHECK: define void @foo
; CHECK-NEXT: ret
store i32 1, i32* @G1
ret void
}
@G2 = linkonce_odr constant i32 42
define void @foo2() {
; CHECK-LABEL: define void @foo2(
; CHECK-NEXT: store
store i32 1, i32* @G2
ret void
}
@G3 = linkonce_odr constant i32 42