brintos

brintos / llvm-project-archived public Read only

0
0
Text · 759 B · a1109fd Raw
26 lines · plain
1; Ensure that llvm-reduce doesn't try to remove the first BB of a2; function when the second BB has multiple predecessors, since that3; results in invalid IR. This issue was fixed by:4; https://reviews.llvm.org/D1310265 6; RUN: llvm-reduce --delta-passes=basic-blocks --test %python --test-arg %p/Inputs/remove-bbs.py -abort-on-invalid-reduction %s -o %t7 8define void @f(ptr %x0) {9uninteresting:10  %x2 = alloca ptr, i32 0, align 811  %x3 = alloca ptr, i32 0, align 812  br label %interesting113 14; this block has 2 predecessors and can't become the entry block15interesting1:16  %x5 = icmp ne ptr %x0, null17  br i1 %x5, label %interesting2, label %interesting118 19interesting2:20  store ptr null, ptr null, align 821  br label %interesting322 23interesting3:24  ret void25}26