1 ; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=basic-blocks,simplify-cfg --test %python --test-arg %p/remove-bbs-sequence.py %s -o %t
2 ; RUN: FileCheck %s < %t
4 ; The interestingness test is that the CFG contains a loop. Verify that the
5 ; unnecessary bb2 and bb3 are removed while still maintaining a loop.
15 %phi = phi i32 [ undef, %bb2 ]
21 ; CHECK:define void @main() {
23 ; CHECK-NEXT: br label %bb4
26 ; CHECK-NEXT: %phi = phi i32 [ undef, %bb0 ], [ undef, %bb4 ]
27 ; CHECK-NEXT: br label %bb4