mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
17 lines
429 B
LLVM
17 lines
429 B
LLVM
; RUN: opt -globaldce -simplifycfg -S < %s | FileCheck %s
|
|
|
|
; Tests whether globaldce does the right cleanup while removing @bar
|
|
; so that a dead BlockAddress reference to foo won't prevent other passes
|
|
; to work properly, e.g. simplifycfg
|
|
@bar = internal unnamed_addr constant i8* blockaddress(@foo, %L1)
|
|
|
|
; CHECK-LABEL: foo
|
|
; CHECK-NOT: br label %L1
|
|
; CHECK: ret void
|
|
define void @foo() {
|
|
entry:
|
|
br label %L1
|
|
L1:
|
|
ret void
|
|
}
|