From 113e4c6070e2421b909bc369da3074508650de47 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 11 Oct 2009 07:11:11 +0000 Subject: [PATCH] another testcase jump threading shouldn't crash on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83758 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/JumpThreading/crash.ll | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/test/Transforms/JumpThreading/crash.ll b/test/Transforms/JumpThreading/crash.ll index b1f9656f6de..0b6cd27110e 100644 --- a/test/Transforms/JumpThreading/crash.ll +++ b/test/Transforms/JumpThreading/crash.ll @@ -23,3 +23,34 @@ bb110: ; preds = %bb } declare %struct.system__secondary_stack__mark_id @system__secondary_stack__ss_mark() + + + +define fastcc void @findratio(double* nocapture %res1, double* nocapture %res2) nounwind ssp { +entry: + br label %bb12 + +bb6.us: + %tmp = icmp eq i32 undef, undef + %tmp1 = fsub double undef, undef + %tmp2 = fcmp ult double %tmp1, 0.000000e+00 + br i1 %tmp, label %bb6.us, label %bb13 + + +bb12: + %tmp3 = fcmp ult double undef, 0.000000e+00 + br label %bb13 + +bb13: + %.lcssa31 = phi double [ undef, %bb12 ], [ %tmp1, %bb6.us ] + %.lcssa30 = phi i1 [ %tmp3, %bb12 ], [ %tmp2, %bb6.us ] + br i1 %.lcssa30, label %bb15, label %bb61 + +bb15: + %tmp4 = fsub double -0.000000e+00, %.lcssa31 + ret void + + +bb61: + ret void +}