1; RUN: opt < %s -jump-threading -S | not grep phi
2
3declare i8 @mcguffin()
4
5define i32 @test(i1 %foo, i8 %b) {
6entry:
7  %a = call i8 @mcguffin()
8  br i1 %foo, label %bb1, label %bb2
9bb1:
10  br label %jt
11bb2:
12  br label %jt
13jt:
14  %x = phi i8 [%a, %bb1], [%b, %bb2]
15  %A = icmp eq i8 %x, %a
16  br i1 %A, label %rt, label %rf
17rt:
18  ret i32 7
19rf:
20  ret i32 8
21}
22