1 - // MIR for `opt` before InstCombine
2 + // MIR for `opt` after InstCombine
4 fn opt(_1: bool) -> i32 {
5 debug x => _1; // in scope 0 at $DIR/equal_true.rs:3:8: 3:9
6 let mut _0: i32; // return place in scope 0 at $DIR/equal_true.rs:3:20: 3:23
7 let mut _2: bool; // in scope 0 at $DIR/equal_true.rs:4:8: 4:17
8 let mut _3: bool; // in scope 0 at $DIR/equal_true.rs:4:8: 4:9
11 StorageLive(_2); // scope 0 at $DIR/equal_true.rs:4:8: 4:17
12 StorageLive(_3); // scope 0 at $DIR/equal_true.rs:4:8: 4:9
13 _3 = _1; // scope 0 at $DIR/equal_true.rs:4:8: 4:9
14 - _2 = Eq(move _3, const true); // scope 0 at $DIR/equal_true.rs:4:8: 4:17
15 + _2 = move _3; // scope 0 at $DIR/equal_true.rs:4:8: 4:17
16 StorageDead(_3); // scope 0 at $DIR/equal_true.rs:4:16: 4:17
17 switchInt(_2) -> [false: bb1, otherwise: bb2]; // scope 0 at $DIR/equal_true.rs:4:5: 4:34
21 _0 = const 1_i32; // scope 0 at $DIR/equal_true.rs:4:31: 4:32
22 goto -> bb3; // scope 0 at $DIR/equal_true.rs:4:5: 4:34
26 _0 = const 0_i32; // scope 0 at $DIR/equal_true.rs:4:20: 4:21
27 goto -> bb3; // scope 0 at $DIR/equal_true.rs:4:5: 4:34
31 StorageDead(_2); // scope 0 at $DIR/equal_true.rs:5:1: 5:2
32 return; // scope 0 at $DIR/equal_true.rs:5:2: 5:2