]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | - // MIR for `opt` before InstCombine |
2 | + // MIR for `opt` after InstCombine | |
3 | ||
6a06907d | 4 | fn opt(_1: bool) -> u32 { |
1b1a35ee | 5 | debug x => _1; // in scope 0 at $DIR/not_equal_false.rs:3:8: 3:9 |
6a06907d XL |
6 | let mut _0: u32; // return place in scope 0 at $DIR/not_equal_false.rs:3:20: 3:23 |
7 | let mut _2: bool; // in scope 0 at $DIR/not_equal_false.rs:4:8: 4:18 | |
8 | let mut _3: bool; // in scope 0 at $DIR/not_equal_false.rs:4:8: 4:9 | |
1b1a35ee XL |
9 | |
10 | bb0: { | |
6a06907d XL |
11 | StorageLive(_2); // scope 0 at $DIR/not_equal_false.rs:4:8: 4:18 |
12 | StorageLive(_3); // scope 0 at $DIR/not_equal_false.rs:4:8: 4:9 | |
13 | _3 = _1; // scope 0 at $DIR/not_equal_false.rs:4:8: 4:9 | |
14 | - _2 = Ne(move _3, const false); // scope 0 at $DIR/not_equal_false.rs:4:8: 4:18 | |
15 | + _2 = move _3; // scope 0 at $DIR/not_equal_false.rs:4:8: 4:18 | |
16 | StorageDead(_3); // scope 0 at $DIR/not_equal_false.rs:4:17: 4:18 | |
17 | switchInt(move _2) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/not_equal_false.rs:4:5: 4:35 | |
1b1a35ee XL |
18 | } |
19 | ||
20 | bb1: { | |
6a06907d XL |
21 | _0 = const 0_u32; // scope 0 at $DIR/not_equal_false.rs:4:21: 4:22 |
22 | goto -> bb3; // scope 0 at $DIR/not_equal_false.rs:4:5: 4:35 | |
1b1a35ee XL |
23 | } |
24 | ||
25 | bb2: { | |
6a06907d XL |
26 | _0 = const 1_u32; // scope 0 at $DIR/not_equal_false.rs:4:32: 4:33 |
27 | goto -> bb3; // scope 0 at $DIR/not_equal_false.rs:4:5: 4:35 | |
1b1a35ee XL |
28 | } |
29 | ||
29967ef6 | 30 | bb3: { |
6a06907d | 31 | StorageDead(_2); // scope 0 at $DIR/not_equal_false.rs:4:34: 4:35 |
1b1a35ee XL |
32 | return; // scope 0 at $DIR/not_equal_false.rs:5:2: 5:2 |
33 | } | |
1b1a35ee XL |
34 | } |
35 |