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