brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · 6cf50ac Raw
17 lines · plain
1; RUN: opt -passes=globaldce,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s2 3; Tests whether globaldce does the right cleanup while removing @bar4; so that a dead BlockAddress reference to foo won't prevent other passes5; to work properly, e.g. simplifycfg6@bar = internal unnamed_addr constant ptr blockaddress(@foo, %L1)7 8; CHECK-LABEL: foo9; CHECK-NOT: br label %L110; CHECK: ret void11define void @foo() {12entry:13  br label %L114L1:15  ret void16}17