diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-20 01:17:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-20 01:17:19 +0000 |
commit | c6c9db2fd7a8039f01a103cd5f5b0eae3858a870 (patch) | |
tree | ae484ebe9e8b122626d8395836da0b4277461fa4 /test/Transforms/SimplifyCFG/BrUnwind.ll | |
parent | ba1c1da36ab778fe3c5b9a8c9fb0d0f0b0e0089e (diff) | |
download | external_llvm-c6c9db2fd7a8039f01a103cd5f5b0eae3858a870.zip external_llvm-c6c9db2fd7a8039f01a103cd5f5b0eae3858a870.tar.gz external_llvm-c6c9db2fd7a8039f01a103cd5f5b0eae3858a870.tar.bz2 |
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
Diffstat (limited to 'test/Transforms/SimplifyCFG/BrUnwind.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/BrUnwind.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll new file mode 100644 index 0000000..6426417 --- /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 +} |