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 | FileCheck %s
12 define i32 @test(i1 %c1, i1 %c2) {
14 br i1 %c1, label %A, label %Y
17 br i1 %c2, label %Z, label %X
20 X: ; preds = %Y, %Z, %A