[llvm-commits] [llvm] r121682 - in /llvm/trunk/test/Transforms/SimplifyCFG: basictest.ll invoke_unwind.ll

Chris Lattner sabre at nondot.org
Sun Dec 12 21:10:31 PST 2010


Author: lattner
Date: Sun Dec 12 23:10:30 2010
New Revision: 121682

URL: http://llvm.org/viewvc/llvm-project?rev=121682&view=rev
Log:
make these tests a bit less fragile

Modified:
    llvm/trunk/test/Transforms/SimplifyCFG/basictest.ll
    llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll

Modified: llvm/trunk/test/Transforms/SimplifyCFG/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/basictest.ll?rev=121682&r1=121681&r2=121682&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/basictest.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/basictest.ll Sun Dec 12 23:10:30 2010
@@ -3,8 +3,7 @@
 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
 
 define void @test1() {
-        br label %BB1
-BB1:            ; preds = %0
+        br label %1
         ret void
 ; CHECK: @test1
 ; CHECK-NEXT: ret void
@@ -12,7 +11,6 @@
 
 define void @test2() {
         ret void
-BB1:            ; No predecessors!
         ret void
 ; CHECK: @test2
 ; CHECK-NEXT: ret void
@@ -20,8 +18,7 @@
 }
 
 define void @test3(i1 %T) {
-        br i1 %T, label %BB1, label %BB1
-BB1:            ; preds = %0, %0
+        br i1 %T, label %1, label %1
         ret void
 ; CHECK: @test3
 ; CHECK-NEXT: ret void
@@ -41,14 +38,12 @@
 ; PR5795
 define void @test5(i32 %A) {
   switch i32 %A, label %return [
-    i32 2, label %bb
-    i32 10, label %bb1
+    i32 2, label %1
+    i32 10, label %2
   ]
 
-bb:                                               ; preds = %entry
   ret void
 
-bb1:                                              ; preds = %entry
   ret void
 
 return:                                           ; preds = %entry

Modified: llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll?rev=121682&r1=121681&r2=121682&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll Sun Dec 12 23:10:30 2010
@@ -9,10 +9,9 @@
 ; CHECK-NEXT: call void @bar()
 ; CHECK-NEXT: ret i32 0
         invoke void @bar( )
-                        to label %Ok unwind label %Rethrow
-Ok:             ; preds = %0
+                        to label %1 unwind label %Rethrow
         ret i32 0
-Rethrow:                ; preds = %0
+Rethrow:
         unwind
 }
 





More information about the llvm-commits mailing list