summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-03-09 07:36:38 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-03-09 07:36:38 +0000
commitdb96ae9607ddca2e0627c8b87a160d61689663ca (patch)
treec1dbe64bb5a12ce6999d9f3777fdd378b7cad211 /test/Transforms/SimplifyCFG
parent3b646de03668fed630f4e3fa9df56a7332a905e4 (diff)
downloadllvm-db96ae9607ddca2e0627c8b87a160d61689663ca.tar.gz
llvm-db96ae9607ddca2e0627c8b87a160d61689663ca.tar.bz2
llvm-db96ae9607ddca2e0627c8b87a160d61689663ca.tar.xz
A BB that unwind_to an "unwind" inst is that same as one that doesn't unwind_to
at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG')
-rw-r--r--test/Transforms/SimplifyCFG/unwindto.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/unwindto.ll b/test/Transforms/SimplifyCFG/unwindto.ll
index e42a831766..28d9d1e6e3 100644
--- a/test/Transforms/SimplifyCFG/unwindto.ll
+++ b/test/Transforms/SimplifyCFG/unwindto.ll
@@ -33,3 +33,11 @@ bb4: unwind_to %cleanup
cleanup:
ret i32 1
}
+
+define i32 @f3() {
+entry: unwind_to %cleanup
+ call void @g(i32 0)
+ ret i32 0
+cleanup:
+ unwind
+}