rust/tests/mir-opt/enum_opt.cand.EnumSizeOpt.32bit.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
3.7 KiB
Diff
Raw Normal View History

- // MIR for `cand` before EnumSizeOpt
+ // MIR for `cand` after EnumSizeOpt
fn cand() -> () {
2022-04-19 10:39:49 -05:00
let mut _0: (); // return place in scope 0 at $DIR/enum_opt.rs:50:15: 50:15
let mut _1: Candidate; // in scope 0 at $DIR/enum_opt.rs:51:7: 51:12
let mut _2: Candidate; // in scope 0 at $DIR/enum_opt.rs:52:7: 52:34
let mut _3: [u64; 1024]; // in scope 0 at $DIR/enum_opt.rs:52:24: 52:33
+ let mut _4: [usize; 2]; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _5: isize; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _6: usize; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _7: usize; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _8: *mut Candidate; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _9: *mut u8; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _10: *const Candidate; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
+ let mut _11: *const u8; // in scope 0 at $DIR/enum_opt.rs:52:3: 52:34
scope 1 {
2022-04-19 10:39:49 -05:00
debug a => _1; // in scope 1 at $DIR/enum_opt.rs:51:7: 51:12
}
bb0: {
2022-04-19 10:39:49 -05:00
StorageLive(_1); // scope 0 at $DIR/enum_opt.rs:51:7: 51:12
Deinit(_1); // scope 0 at $DIR/enum_opt.rs:51:15: 51:34
((_1 as Small).0: u8) = const 1_u8; // scope 0 at $DIR/enum_opt.rs:51:15: 51:34
discriminant(_1) = 0; // scope 0 at $DIR/enum_opt.rs:51:15: 51:34
StorageLive(_2); // scope 1 at $DIR/enum_opt.rs:52:7: 52:34
StorageLive(_3); // scope 1 at $DIR/enum_opt.rs:52:24: 52:33
_3 = [const 1_u64; 1024]; // scope 1 at $DIR/enum_opt.rs:52:24: 52:33
Deinit(_2); // scope 1 at $DIR/enum_opt.rs:52:7: 52:34
((_2 as Large).0: [u64; 1024]) = move _3; // scope 1 at $DIR/enum_opt.rs:52:7: 52:34
discriminant(_2) = 1; // scope 1 at $DIR/enum_opt.rs:52:7: 52:34
StorageDead(_3); // scope 1 at $DIR/enum_opt.rs:52:33: 52:34
- _1 = move _2; // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ StorageLive(_4); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _4 = const [2_usize, 8196_usize]; // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _5 = discriminant(_2); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _6 = _5 as usize (Misc); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _7 = _4[_6]; // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _8 = &raw mut _1; // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _9 = _8 as *mut u8 (Misc); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _10 = &raw const _2; // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ _11 = _10 as *const u8 (Misc); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ copy_nonoverlapping(src=_11, dst=_9, count=_7); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
+ StorageDead(_4); // scope 1 at $DIR/enum_opt.rs:52:3: 52:34
StorageDead(_2); // scope 1 at $DIR/enum_opt.rs:52:33: 52:34
_0 = const (); // scope 0 at $DIR/enum_opt.rs:50:15: 53:2
StorageDead(_1); // scope 0 at $DIR/enum_opt.rs:53:1: 53:2
return; // scope 0 at $DIR/enum_opt.rs:53:2: 53:2
}
bb1 (cleanup): {
2022-04-19 10:39:49 -05:00
resume; // scope 0 at $DIR/enum_opt.rs:50:1: 53:2
}
}