blob: c6fb9a3a5f0d30428e2d686c6ba9a59b2443eec3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
2
3; Dominance relationships is not calculated correctly for unreachable blocks,
4; which causes the verifier to barf on this input.
5
6int %test(bool %b) {
7BB0: ret int 7 ; Loop is unreachable
8
9Loop:
10 %B = phi int [%B, %L2], [%B, %Loop] ; PHI has same value always.
11 br bool %b, label %L2, label %Loop
12L2:
13 br label %Loop
14}
15