From: Chris Lattner Date: Tue, 20 Jul 2004 01:17:19 +0000 (+0000) Subject: test that unconditional branches to unwinds are always eliminated X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c6c9db2fd7a8039f01a103cd5f5b0eae3858a870;p=oota-llvm.git test that unconditional branches to unwinds are always eliminated git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15021 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll new file mode 100644 index 00000000000..64264175ae9 --- /dev/null +++ b/test/Transforms/SimplifyCFG/BrUnwind.ll @@ -0,0 +1,12 @@ +;RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br label' +void %test(bool %C) { + br bool %C, label %A, label %B +A: + call void %test(bool %C) + br label %X +B: + call void %test(bool %C) + br label %X +X: + unwind +}