Temporarily revert r62487. It's causing this error during a release bootstrap of
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2009-01-18-PHIPropCrash.ll
1 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis
2 ; XFAIL: *
3 ; PR3016
4 ; Dead use caused invariant violation.
5
6 define i32 @func_105(i1 %tmp5, i1 %tmp7) nounwind {
7 BB:
8         br i1 true, label %BB2, label %BB1
9
10 BB1:            ; preds = %BB
11         br label %BB2
12
13 BB2:            ; preds = %BB1, %BB
14         %tmp3 = phi i1 [ true, %BB ], [ false, %BB1 ]           ; <i1> [#uses=1]
15         br label %BB9
16
17 BB9:            ; preds = %BB11, %BB2
18         %tmp10 = phi i32 [ 0, %BB2 ], [ %tmp12, %BB11 ]         ; <i32> [#uses=1]
19         br i1 %tmp5, label %BB11, label %BB13
20
21 BB11:           ; preds = %BB13, %BB9
22         %tmp12 = phi i32 [ 0, %BB13 ], [ %tmp10, %BB9 ]         ; <i32> [#uses=2]
23         br i1 %tmp3, label %BB9, label %BB20
24
25 BB13:           ; preds = %BB13, %BB9
26         %tmp14 = phi i32 [ 0, %BB9 ], [ %tmp14, %BB13 ]         ; <i32> [#uses=1]
27         br i1 %tmp7, label %BB13, label %BB11
28
29 BB20:           ; preds = %BB11
30         ret i32 %tmp12
31 }