summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-09-19 22:11:35 +0000
committerBill Wendling <isanbard@gmail.com>2011-09-19 22:11:35 +0000
commit803c9d33be12870312cbec82b2407a9f90b583e5 (patch)
tree02f25a52784c5fd0e8ff0ef5a6927f71052a43ce /test/Transforms/SimplifyCFG
parent17569fe05b9e22ab7de4c73252ce811092f1b7b2 (diff)
downloadllvm-803c9d33be12870312cbec82b2407a9f90b583e5.tar.gz
llvm-803c9d33be12870312cbec82b2407a9f90b583e5.tar.bz2
llvm-803c9d33be12870312cbec82b2407a9f90b583e5.tar.xz
Replace more uses of 'unwind' in the tests with calls to landingpad and
resume. Note that some of these tests were basically dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG')
-rw-r--r--test/Transforms/SimplifyCFG/invoke_unwind.ll20
1 files changed, 4 insertions, 16 deletions
diff --git a/test/Transforms/SimplifyCFG/invoke_unwind.ll b/test/Transforms/SimplifyCFG/invoke_unwind.ll
index 73faa952fb..ed7ff8287f 100644
--- a/test/Transforms/SimplifyCFG/invoke_unwind.ll
+++ b/test/Transforms/SimplifyCFG/invoke_unwind.ll
@@ -12,21 +12,9 @@ define i32 @test1() {
to label %1 unwind label %Rethrow
ret i32 0
Rethrow:
- unwind
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ catch i8* null
+ resume { i8*, i32 } %exn
}
-
-; Verify that simplifycfg isn't duplicating 'unwind' instructions. Doing this
-; is bad because it discourages commoning.
-define i32 @test2(i1 %c) {
-; CHECK: @test2
-; CHECK: T:
-; CHECK-NEXT: call void @bar()
-; CHECK-NEXT: br label %F
- br i1 %c, label %T, label %F
-T:
- call void @bar()
- br label %F
-F:
- unwind
-}
+declare i32 @__gxx_personality_v0(...)