]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/not_equal_false.opt.InstCombine.diff
Rollup merge of #107596 - Kobzol:stage-build-timer, r=Mark-Simulacrum
[rust.git] / tests / mir-opt / not_equal_false.opt.InstCombine.diff
1 - // MIR for `opt` before InstCombine
2 + // MIR for `opt` after InstCombine
3   
4   fn opt(_1: bool) -> u32 {
5       debug x => _1;                       // in scope 0 at $DIR/not_equal_false.rs:+0:8: +0:9
6       let mut _0: u32;                     // return place in scope 0 at $DIR/not_equal_false.rs:+0:20: +0:23
7       let mut _2: bool;                    // in scope 0 at $DIR/not_equal_false.rs:+1:8: +1:18
8       let mut _3: bool;                    // in scope 0 at $DIR/not_equal_false.rs:+1:8: +1:9
9   
10       bb0: {
11           StorageLive(_2);                 // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:18
12           StorageLive(_3);                 // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:9
13           _3 = _1;                         // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:9
14 -         _2 = Ne(move _3, const false);   // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:18
15 +         _2 = move _3;                    // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:18
16           StorageDead(_3);                 // scope 0 at $DIR/not_equal_false.rs:+1:17: +1:18
17           switchInt(move _2) -> [0: bb2, otherwise: bb1]; // scope 0 at $DIR/not_equal_false.rs:+1:8: +1:18
18       }
19   
20       bb1: {
21           _0 = const 0_u32;                // scope 0 at $DIR/not_equal_false.rs:+1:21: +1:22
22           goto -> bb3;                     // scope 0 at $DIR/not_equal_false.rs:+1:5: +1:35
23       }
24   
25       bb2: {
26           _0 = const 1_u32;                // scope 0 at $DIR/not_equal_false.rs:+1:32: +1:33
27           goto -> bb3;                     // scope 0 at $DIR/not_equal_false.rs:+1:5: +1:35
28       }
29   
30       bb3: {
31           StorageDead(_2);                 // scope 0 at $DIR/not_equal_false.rs:+1:34: +1:35
32           return;                          // scope 0 at $DIR/not_equal_false.rs:+2:2: +2:2
33       }
34   }
35