You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
429 B
17 lines
429 B
; 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
|
|
}
|