diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll | |
download | src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.tar.gz src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.zip |
Notes
Diffstat (limited to 'test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll b/test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll new file mode 100644 index 000000000000..fc34f5157ba6 --- /dev/null +++ b/test/Transforms/SimplifyCFG/2009-01-18-PHIPropCrash.ll @@ -0,0 +1,31 @@ +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis +; XFAIL: * +; PR3016 +; Dead use caused invariant violation. + +define i32 @func_105(i1 %tmp5, i1 %tmp7) nounwind { +BB: + br i1 true, label %BB2, label %BB1 + +BB1: ; preds = %BB + br label %BB2 + +BB2: ; preds = %BB1, %BB + %tmp3 = phi i1 [ true, %BB ], [ false, %BB1 ] ; <i1> [#uses=1] + br label %BB9 + +BB9: ; preds = %BB11, %BB2 + %tmp10 = phi i32 [ 0, %BB2 ], [ %tmp12, %BB11 ] ; <i32> [#uses=1] + br i1 %tmp5, label %BB11, label %BB13 + +BB11: ; preds = %BB13, %BB9 + %tmp12 = phi i32 [ 0, %BB13 ], [ %tmp10, %BB9 ] ; <i32> [#uses=2] + br i1 %tmp3, label %BB9, label %BB20 + +BB13: ; preds = %BB13, %BB9 + %tmp14 = phi i32 [ 0, %BB9 ], [ %tmp14, %BB13 ] ; <i32> [#uses=1] + br i1 %tmp7, label %BB13, label %BB11 + +BB20: ; preds = %BB11 + ret i32 %tmp12 +} |