2 ; RUN: opt < %s -passes='simple-loop-unswitch<nontrivial>' -disable-output
5 ; Make sure we don't crash due to a dangling use of %tmp2 in bb7.
6 define void @test.use_in_dead_block(i1 %arg1, i1 %arg2) {
10 bb2: ; preds = %bb4, %bb1
11 %tmp1 = phi i64 [ 0, %bb4 ], [ 42, %bb1 ]
12 br i1 %arg1, label %bb3, label %bb6
15 br i1 %arg2, label %bb5, label %bb4
25 %tmp3 = add i64 %tmp1, 1
28 bb7: ; No predecessors!
29 %tmp4 = add i32 %tmp2, 1