1 ; RUN: llvm-as < %s | \
2 ; RUN: opt -predsimplify -instcombine -simplifycfg | llvm-dis | \
3 ; RUN: grep -v declare | grep pass | count 2
5 define i32 @test(i32 %x, i32 %y) {
7 %tmp2 = icmp slt i32 %x, %y ; <i1> [#uses=1]
8 %tmp = icmp ne i1 %tmp2, true ; <i1> [#uses=1]
9 br i1 %tmp, label %cond_true, label %return
10 cond_true: ; preds = %entry
11 %tmp4 = icmp eq i32 %x, %y ; <i1> [#uses=1]
12 br i1 %tmp4, label %cond_true5, label %cond_false
13 cond_true5: ; preds = %cond_true
14 %tmp6 = call i32 @pass1( ) ; <i32> [#uses=1]
16 cond_false: ; preds = %cond_true
17 %tmp8 = call i32 @pass2( ) ; <i32> [#uses=1]
19 return: ; preds = %entry