summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
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
commitf3d637fa141de3038b206bda5937e2cd2939362a (patch)
tree4125ae9513b807d615955849cd7ff47f19ec1858 /llvm/test/Transforms
parent95f4b77b0de530f258caf267d83e2067cef40f41 (diff)
downloadbcm5719-llvm-f3d637fa141de3038b206bda5937e2cd2939362a.tar.gz
bcm5719-llvm-f3d637fa141de3038b206bda5937e2cd2939362a.zip
A BB that unwind_to an "unwind" inst is that same as one that doesn't unwind_to
at all. llvm-svn: 48096
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/unwindto.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/unwindto.ll b/llvm/test/Transforms/SimplifyCFG/unwindto.ll
index e42a831766c..28d9d1e6e39 100644
--- a/llvm/test/Transforms/SimplifyCFG/unwindto.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud