1 ; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
2 ; There should be no uncond branches left.
3 ; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
9 define i32 @test(i1 %cond) {
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 br i1 %A, label %T2, label %F2
34 ;; cond is known false on Entry -> F1 edge!
35 define i32 @test2(i1 %cond) {
37 br i1 %cond, label %T1, label %F1
44 br i1 %cond, label %Merge, label %F2
47 %B = phi i32 [47, %T1], [192, %F1]