1 ; This test checks to make sure that 'br X, Dest, Dest' is folded into
2 ; 'br Dest'. This can only happen after the 'Z' block is eliminated. This is
3 ; due to the fact that the SimplifyCFG function does not use
4 ; the ConstantFoldTerminator function.
6 ; RUN: opt < %s -simplifycfg -S | \
7 ; RUN: not grep {br i1 %c2}
11 define i32 @test(i1 %c1, i1 %c2) {
13 br i1 %c1, label %A, label %Y
16 br i1 %c2, label %Z, label %X
19 X: ; preds = %Y, %Z, %A