aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/JumpThreading/crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-07 08:05:03 +0000
committerChris Lattner <sabre@nondot.org>2009-11-07 08:05:03 +0000
commit5729d38c81bc2e3b21a2bb7a80a8cde384fc7b7b (patch)
treeb65141b577e196b507417ee4c73f18d74ccf70c6 /test/Transforms/JumpThreading/crash.ll
parente880efe446f731b73558542c12a6f980b8baa765 (diff)
downloadexternal_llvm-5729d38c81bc2e3b21a2bb7a80a8cde384fc7b7b.zip
external_llvm-5729d38c81bc2e3b21a2bb7a80a8cde384fc7b7b.tar.gz
external_llvm-5729d38c81bc2e3b21a2bb7a80a8cde384fc7b7b.tar.bz2
reapply 86289, 86278, 86270, 86267, 86266 & 86264 plus a fix
(making pred factoring only happen if threading is guaranteed to be successful). This now survives an X86-64 bootstrap of llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/crash.ll')
-rw-r--r--test/Transforms/JumpThreading/crash.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/JumpThreading/crash.ll b/test/Transforms/JumpThreading/crash.ll
index 862b403..7e2a2a0 100644
--- a/test/Transforms/JumpThreading/crash.ll
+++ b/test/Transforms/JumpThreading/crash.ll
@@ -170,3 +170,25 @@ bb32.i:
ret i32 1
}
+
+define fastcc void @test5(i1 %tmp, i32 %tmp1) nounwind ssp {
+entry:
+ br i1 %tmp, label %bb12, label %bb13
+
+
+bb12:
+ br label %bb13
+
+bb13:
+ %.lcssa31 = phi i32 [ undef, %bb12 ], [ %tmp1, %entry ]
+ %A = and i1 undef, undef
+ br i1 %A, label %bb15, label %bb61
+
+bb15:
+ ret void
+
+
+bb61:
+ ret void
+}
+