Eliminate some Tclisms.
[oota-llvm.git] / test / Transforms / JumpThreading / dup-cond.ll
1 ; RUN: llvm-as < %s | opt -jump-threading -die | llvm-dis | grep icmp | count 1
2
3 declare void @f1()
4 declare void @f2()
5 declare void @f3()
6
7 define i32 @test(i32 %A) {
8         %tmp455 = icmp eq i32 %A, 42
9         br i1 %tmp455, label %BB1, label %BB2
10         
11 BB2:
12         call void @f1()
13         br label %BB1
14         
15
16 BB1:
17         %tmp459 = icmp eq i32 %A, 42
18         br i1 %tmp459, label %BB3, label %BB4
19
20 BB3:
21         call void @f2()
22         ret i32 3
23
24 BB4:
25         call void @f3()
26         ret i32 4
27 }
28
29
30