[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Transforms / SimpleLoopUnswitch / dead-blocks-uses-in-unreachablel-blocks.ll
blob52bb291746d3954b290479d87de2790824087d20
1 ; REQUIRES: asserts
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) {
7 bb1:
8   br label %bb2
10 bb2:                                              ; preds = %bb4, %bb1
11   %tmp1 = phi i64 [ 0, %bb4 ], [ 42, %bb1 ]
12   br i1 %arg1, label %bb3, label %bb6
14 bb3:                                              ; preds = %bb2
15   br i1 %arg2, label %bb5, label %bb4
17 bb4:                                              ; preds = %bb3
18   %tmp2 = add i32 1, 1
19   br label %bb2
21 bb5:                                             ; preds = %bb3
22   ret void
24 bb6:                                             ; preds = %bb2
25   %tmp3 = add i64 %tmp1, 1
26   ret void
28 bb7:                                             ; No predecessors!
29   %tmp4 = add i32 %tmp2, 1
30   ret void