1 ; RUN: opt < %s -predsimplify -disable-output
3 define i32 @test_wp_B_slice(i32 %select_method) {
6 cond_true114: ; preds = %bb309
7 %tmp130 = icmp slt i32 0, 128 ; <i1> [#uses=1]
8 %min = select i1 %tmp130, i32 0, i32 127 ; <i32> [#uses=2]
9 %tmp143 = load i32* null ; <i32> [#uses=0]
10 br i1 false, label %bb303, label %bb314
11 cond_true166: ; preds = %bb303
13 cond_false200: ; preds = %bb303
14 %tmp205 = sdiv i32 %min, 2 ; <i32> [#uses=1]
15 %iftmp.380.0.p = select i1 false, i32 0, i32 %tmp205 ; <i32> [#uses=0]
17 bb303: ; preds = %cond_true114
18 %tmp165 = icmp eq i32 %min, 0 ; <i1> [#uses=1]
19 br i1 %tmp165, label %cond_true166, label %cond_false200
20 bb309: ; preds = %entry
21 br i1 false, label %cond_true114, label %bb314
22 bb314: ; preds = %bb309, %cond_true114