test that unconditional branches to unwinds are always eliminated
llvm-svn: 15021
This commit is contained in:
parent
5e744fa1a3
commit
d4cecb9e2f
|
@ -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…
Reference in New Issue