You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
28
external/llvm/test/Transforms/GlobalOpt/deadglobal.ll
vendored
Normal file
28
external/llvm/test/Transforms/GlobalOpt/deadglobal.ll
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
; 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
|
Reference in New Issue
Block a user