llvm-6502/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll
Tanya Lattner ceca194c43 Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48137 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-10 07:21:50 +00:00

23 lines
457 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 | \
; RUN: not grep {br bool %c2}
declare void @noop()
define i32 @test(i1 %c1, i1 %c2) {
call void @noop( )
br i1 %c1, label %A, label %Y
A: ; preds = %0
call void @noop( )
br i1 %c2, label %X, label %X
X: ; preds = %Y, %A, %A
call void @noop( )
ret i32 0
Y: ; preds = %0
call void @noop( )
br label %X
}