another testcase jump threading shouldn't crash on.
authorChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 07:11:11 +0000 (07:11 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 07:11:11 +0000 (07:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83758 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/JumpThreading/crash.ll

index b1f9656f6de6dc260452f1fc804a1adf66ab7303..0b6cd27110e486adfdf4bb2aa3738ab5b7229687 100644 (file)
@@ -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
+}