diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-04-25 16:53:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-04-25 16:53:59 +0000 |
commit | 280a6e607d8eb7401749a92db624a82de47da777 (patch) | |
tree | 040d0b406293ebcc56801552313daa6136ee5e6c /test | |
parent | 419ace9bda6abaaa65560708064b210b4e48880f (diff) | |
download | llvm-280a6e607d8eb7401749a92db624a82de47da777.tar.gz llvm-280a6e607d8eb7401749a92db624a82de47da777.tar.bz2 llvm-280a6e607d8eb7401749a92db624a82de47da777.tar.xz |
Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989
r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/Inline/unwindto.ll | 13 | ||||
-rw-r--r-- | test/Transforms/PruneEH/unwindto.ll | 15 | ||||
-rw-r--r-- | test/Transforms/SimplifyCFG/unwindto.ll | 61 |
3 files changed, 0 insertions, 89 deletions
diff --git a/test/Transforms/Inline/unwindto.ll b/test/Transforms/Inline/unwindto.ll deleted file mode 100644 index 1213497b5b..0000000000 --- a/test/Transforms/Inline/unwindto.ll +++ /dev/null @@ -1,13 +0,0 @@ -; RUN: llvm-as < %s | opt -inline | llvm-dis | grep "br label %cleanup" - -define void @g() { - unwind -} - -define i32 @f1() { -entry: unwinds to %cleanup - call void @g() - ret i32 0 -cleanup: - ret i32 1 -} diff --git a/test/Transforms/PruneEH/unwindto.ll b/test/Transforms/PruneEH/unwindto.ll deleted file mode 100644 index ed69f4ce22..0000000000 --- a/test/Transforms/PruneEH/unwindto.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep {unwinds to} - -define i8 @test7(i1 %b) { -entry: unwinds to %cleanup - br i1 %b, label %cond_true, label %cond_false -cond_true: unwinds to %cleanup - br label %cleanup -cond_false: unwinds to %cleanup - br label %cleanup -cleanup: - %x = phi i8 [0, %entry], [1, %cond_true], [1, %cond_true], - [2, %cond_false], [2, %cond_false] - ret i8 %x -} - diff --git a/test/Transforms/SimplifyCFG/unwindto.ll b/test/Transforms/SimplifyCFG/unwindto.ll deleted file mode 100644 index a65e29887c..0000000000 --- a/test/Transforms/SimplifyCFG/unwindto.ll +++ /dev/null @@ -1,61 +0,0 @@ -; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep {unwinds to} | count 3 - -declare void @g(i32) - -define i32 @f1() { -entry: - br label %bb1 -bb1: unwinds to %cleanup1 - call void @g(i32 0) - br label %bb2 -bb2: unwinds to %cleanup2 - call void @g(i32 1) - br label %exit -exit: - ret i32 0 -cleanup1: - ret i32 1 -cleanup2: - ret i32 2 -} - -define i32 @f2() { -entry: unwinds to %cleanup - br label %bb1 -bb1: unwinds to %cleanup - br label %bb2 -bb2: unwinds to %cleanup - br label %bb3 -bb3: - br label %bb4 -bb4: unwinds to %cleanup - ret i32 0 -cleanup: - ret i32 1 -} - -define i32 @f3() { -entry: unwinds to %cleanup - call void @g(i32 0) - ret i32 0 -cleanup: - unwind -} - -define i32 @f4() { -entry: unwinds to %cleanup - call void @g(i32 0) - br label %cleanup -cleanup: - unwind -} - -define i32 @f5() { -entry: unwinds to %cleanup - call void @g(i32 0) - br label %other -other: - ret i32 0 -cleanup: - unwind -} |