|
1 |
| -//@ test-mir-pass: InstSimplify |
| 1 | +//@ test-mir-pass: InstSimplify-after-simplifycfg |
2 | 2 |
|
3 |
| -// EMIT_MIR bool_compare.eq_true.InstSimplify.diff |
| 3 | +// EMIT_MIR bool_compare.eq_true.InstSimplify-after-simplifycfg.diff |
4 | 4 | fn eq_true(x: bool) -> u32 {
|
5 | 5 | // CHECK-LABEL: fn eq_true(
|
6 | 6 | // CHECK-NOT: Eq(
|
7 | 7 | if x == true { 0 } else { 1 }
|
8 | 8 | }
|
9 | 9 |
|
10 |
| -// EMIT_MIR bool_compare.true_eq.InstSimplify.diff |
| 10 | +// EMIT_MIR bool_compare.true_eq.InstSimplify-after-simplifycfg.diff |
11 | 11 | fn true_eq(x: bool) -> u32 {
|
12 | 12 | // CHECK-LABEL: fn true_eq(
|
13 | 13 | // CHECK-NOT: Eq(
|
14 | 14 | if true == x { 0 } else { 1 }
|
15 | 15 | }
|
16 | 16 |
|
17 |
| -// EMIT_MIR bool_compare.ne_true.InstSimplify.diff |
| 17 | +// EMIT_MIR bool_compare.ne_true.InstSimplify-after-simplifycfg.diff |
18 | 18 | fn ne_true(x: bool) -> u32 {
|
19 | 19 | // CHECK-LABEL: fn ne_true(
|
20 | 20 | // CHECK: Not(
|
21 | 21 | if x != true { 0 } else { 1 }
|
22 | 22 | }
|
23 | 23 |
|
24 |
| -// EMIT_MIR bool_compare.true_ne.InstSimplify.diff |
| 24 | +// EMIT_MIR bool_compare.true_ne.InstSimplify-after-simplifycfg.diff |
25 | 25 | fn true_ne(x: bool) -> u32 {
|
26 | 26 | // CHECK-LABEL: fn true_ne(
|
27 | 27 | // CHECK: Not(
|
28 | 28 | if true != x { 0 } else { 1 }
|
29 | 29 | }
|
30 | 30 |
|
31 |
| -// EMIT_MIR bool_compare.eq_false.InstSimplify.diff |
| 31 | +// EMIT_MIR bool_compare.eq_false.InstSimplify-after-simplifycfg.diff |
32 | 32 | fn eq_false(x: bool) -> u32 {
|
33 | 33 | // CHECK-LABEL: fn eq_false(
|
34 | 34 | // CHECK: Not(
|
35 | 35 | if x == false { 0 } else { 1 }
|
36 | 36 | }
|
37 | 37 |
|
38 |
| -// EMIT_MIR bool_compare.false_eq.InstSimplify.diff |
| 38 | +// EMIT_MIR bool_compare.false_eq.InstSimplify-after-simplifycfg.diff |
39 | 39 | fn false_eq(x: bool) -> u32 {
|
40 | 40 | // CHECK-LABEL: fn false_eq(
|
41 | 41 | // CHECK: Not(
|
42 | 42 | if false == x { 0 } else { 1 }
|
43 | 43 | }
|
44 | 44 |
|
45 |
| -// EMIT_MIR bool_compare.ne_false.InstSimplify.diff |
| 45 | +// EMIT_MIR bool_compare.ne_false.InstSimplify-after-simplifycfg.diff |
46 | 46 | fn ne_false(x: bool) -> u32 {
|
47 | 47 | // CHECK-LABEL: fn ne_false(
|
48 | 48 | // CHECK-NOT: Ne(
|
49 | 49 | if x != false { 0 } else { 1 }
|
50 | 50 | }
|
51 | 51 |
|
52 |
| -// EMIT_MIR bool_compare.false_ne.InstSimplify.diff |
| 52 | +// EMIT_MIR bool_compare.false_ne.InstSimplify-after-simplifycfg.diff |
53 | 53 | fn false_ne(x: bool) -> u32 {
|
54 | 54 | // CHECK-LABEL: fn false_ne(
|
55 | 55 | // CHECK-NOT: Ne(
|
|
0 commit comments