brintos

brintos / llvm-project-archived public Read only

0
0
Text · 893 B · 52bb291 Raw
32 lines · plain
1; REQUIRES: asserts2; RUN: opt < %s -passes='simple-loop-unswitch<nontrivial>' -disable-output3 4 5; Make sure we don't crash due to a dangling use of %tmp2 in bb7.6define void @test.use_in_dead_block(i1 %arg1, i1 %arg2) {7bb1:8  br label %bb29 10bb2:                                              ; preds = %bb4, %bb111  %tmp1 = phi i64 [ 0, %bb4 ], [ 42, %bb1 ]12  br i1 %arg1, label %bb3, label %bb613 14bb3:                                              ; preds = %bb215  br i1 %arg2, label %bb5, label %bb416 17bb4:                                              ; preds = %bb318  %tmp2 = add i32 1, 119  br label %bb220 21bb5:                                             ; preds = %bb322  ret void23 24bb6:                                             ; preds = %bb225  %tmp3 = add i64 %tmp1, 126  ret void27 28bb7:                                             ; No predecessors!29  %tmp4 = add i32 %tmp2, 130  ret void31}32