1 ; RUN: llvm-as %s -o /dev/null
2 ; RUN: verify-uselistorder %s
4 ; Dominance relationships is not calculated correctly for unreachable blocks,
5 ; which causes the verifier to barf on this input.
7 define i32 @test(i1 %b) {
9 ret i32 7 ; Loop is unreachable
11 Loop: ; preds = %L2, %Loop
12 %B = phi i32 [ %B, %L2 ], [ %B, %Loop ] ;PHI has same value always.
13 br i1 %b, label %L2, label %Loop