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: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br bool %c2'
10 int %test(bool %c1, bool %c2) {
12 br bool %c1, label %A, label %Y
15 br bool %c2, label %Z, label %X ; Can be converted to unconditional br