19 lines · plain
1; RUN: llvm-as %s -o /dev/null2; RUN: verify-uselistorder %s3 4; Dominance relationships is not calculated correctly for unreachable blocks,5; which causes the verifier to barf on this input.6 7define i32 @test(i1 %b) {8BB0:9 ret i32 7 ; Loop is unreachable10 11Loop: ; preds = %L2, %Loop12 %B = phi i32 [ %B, %L2 ], [ %B, %Loop ] ;PHI has same value always. 13 br i1 %b, label %L2, label %Loop14 15L2: ; preds = %Loop16 br label %Loop17}18 19