From c6c9db2fd7a8039f01a103cd5f5b0eae3858a870 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Jul 2004 01:17:19 +0000 Subject: 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 --- test/Transforms/SimplifyCFG/BrUnwind.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/SimplifyCFG/BrUnwind.ll diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll new file mode 100644 index 0000000000..64264175ae --- /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 +} -- cgit v1.2.3