diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-13 05:10:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-13 05:10:30 +0000 |
commit | c232a2e559d50f2aa2cb2bfc5b895d07fd8ee3d0 (patch) | |
tree | 5f20a1fad83e0319c76b7e59568feae420227803 /test/Transforms/SimplifyCFG/basictest.ll | |
parent | 97fdb898f5350e51bb40afd58e3f4e1d18e348db (diff) | |
download | external_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
Diffstat (limited to 'test/Transforms/SimplifyCFG/basictest.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/basictest.ll | 13 |
1 files changed, 4 insertions, 9 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 |