]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/not_equal_false.opt.InstCombine.diff
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / 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:3:8: 3:9
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
9
10 bb0: {
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
18 }
19
20 bb1: {
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
23 }
24
25 bb2: {
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
28 }
29
30 bb3: {
31 StorageDead(_2); // scope 0 at $DIR/not_equal_false.rs:4:34: 4:35
32 return; // scope 0 at $DIR/not_equal_false.rs:5:2: 5:2
33 }
34 }
35