34 lines · plain
1; RUN: llvm-reduce --delta-passes=simplify-cfg --test %python --test-arg %p/Inputs/remove-bbs.py -abort-on-invalid-reduction %s -o %t2 3; RUN: FileCheck --check-prefix=CHECK-FINAL %s --input-file=%t4; CHECK-FINAL: @f15; CHECK-FINAL-NOT: x6:6; CHECK-FINAL-NOT: x10:7 8define void @f1(ptr %interesting3, i32 %interesting2) {9 %x3 = alloca ptr, i32 0, align 810 store ptr %interesting3, ptr %interesting3, align 811 switch i32 %interesting2, label %interesting1 [12 i32 0, label %x613 i32 1, label %x1114 ]15 16x4:17 %x5 = call ptr @f2()18 br label %x1019 20x10:21 br label %interesting122 23x6:24 br label %x1125 26x11:27 br label %interesting128 29interesting1:30 ret void31}32 33declare ptr @f2()34