mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
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
This commit is contained in:
parent
ba1c1da36a
commit
c6c9db2fd7
12
test/Transforms/SimplifyCFG/BrUnwind.ll
Normal file
12
test/Transforms/SimplifyCFG/BrUnwind.ll
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user