aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-13 05:10:30 +0000
committerChris Lattner <sabre@nondot.org>2010-12-13 05:10:30 +0000
commitc232a2e559d50f2aa2cb2bfc5b895d07fd8ee3d0 (patch)
tree5f20a1fad83e0319c76b7e59568feae420227803
parent97fdb898f5350e51bb40afd58e3f4e1d18e348db (diff)
downloadexternal_llvm-c232a2e559d50f2aa2cb2bfc5b895d07fd8ee3d0.zip
external_llvm-c232a2e559d50f2aa2cb2bfc5b895d07fd8ee3d0.tar.gz
external_llvm-c232a2e559d50f2aa2cb2bfc5b895d07fd8ee3d0.tar.bz2
make these tests a bit less fragile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121682 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/SimplifyCFG/basictest.ll13
-rw-r--r--test/Transforms/SimplifyCFG/invoke_unwind.ll5
2 files changed, 6 insertions, 12 deletions
diff --git a/test/Transforms/SimplifyCFG/basictest.ll b/test/Transforms/SimplifyCFG/basictest.ll
index 7315ff6..b485f6a 100644
--- a/test/Transforms/SimplifyCFG/basictest.ll
+++ b/test/Transforms/SimplifyCFG/basictest.ll
@@ -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 @@ BB1: ; preds = %0
define void @test2() {
ret void
-BB1: ; No predecessors!
ret void
; CHECK: @test2
; CHECK-NEXT: ret void
@@ -20,8 +18,7 @@ BB1: ; No predecessors!
}
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 @@ return:
; 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
diff --git a/test/Transforms/SimplifyCFG/invoke_unwind.ll b/test/Transforms/SimplifyCFG/invoke_unwind.ll
index bbd779b..73faa95 100644
--- a/test/Transforms/SimplifyCFG/invoke_unwind.ll
+++ b/test/Transforms/SimplifyCFG/invoke_unwind.ll
@@ -9,10 +9,9 @@ define i32 @test1() {
; 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
}