xref: /llvm-project/llvm/test/tools/llvm-reduce/remove-bbs-illegal2.ll (revision 213c21fe10bb1bc72efddc5828761f445f16f28c)
1; RUN: llvm-reduce --delta-passes=basic-blocks --test %python --test-arg %p/Inputs/remove-bbs.py -abort-on-invalid-reduction %s -o %t
2
3declare void @0()
4
5define internal void @1(ptr %x0, i1 %x1) {
6interesting0:
7  %x3 = alloca i32, align 4
8  store ptr null, ptr %x0, align 8
9  br label %interesting1
10
11interesting1:                                                ; preds = %x2
12  call void @0()
13  br label %x2
14
15x2:
16  br i1 %x1, label %interesting3, label %interesting4
17
18interesting3:
19  call void @0()
20  br label %x2
21
22interesting4:
23  br label %x5
24
25x5:
26  store i32 0, ptr %x3, align 4
27  ret void
28}
29