mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
e78760e179
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8558 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
434 B
LLVM
21 lines
434 B
LLVM
; This test checks to make sure that 'br X, Dest, Dest' is folded into
|
|
; 'br Dest'
|
|
|
|
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br bool %c2'
|
|
|
|
declare void %noop()
|
|
|
|
int %test(bool %c1, bool %c2) {
|
|
call void %noop()
|
|
br bool %c1, label %A, label %Y
|
|
A:
|
|
call void %noop()
|
|
br bool %c2, label %X, label %X ; Can be converted to unconditional br
|
|
X:
|
|
call void %noop()
|
|
ret int 0
|
|
Y:
|
|
call void %noop()
|
|
br label %X
|
|
}
|