1 ; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
2 ; There should be no uncond branches left.
3 ; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
9 define i32 @test(i1 %cond, i1 %cond2, i1 %cond3) {
10 br i1 %cond, label %T1, label %F1
21 %A = phi i1 [true, %T1], [false, %F1]
22 %B = phi i32 [%v1, %T1], [%v2, %F1]
23 %C = and i1 %A, %cond2
24 %D = and i1 %C, %cond3
25 br i1 %D, label %T2, label %F2