mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-26 18:26:51 -04:00
598198edbc
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358552 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|