mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
23 lines
437 B
LLVM
23 lines
437 B
LLVM
; This test checks to make sure that 'br X, Dest, Dest' is folded into
|
|
; 'br Dest'
|
|
|
|
; RUN: opt < %s -simplifycfg -S | \
|
|
; RUN: not grep {br i1 %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
|
|
}
|
|
|