rust/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.64bit.diff

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

130 lines
3.6 KiB
Diff
Raw Normal View History

- // MIR for `main` before DataflowConstProp
+ // MIR for `main` after DataflowConstProp
fn main() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let mut _1: S;
let mut _3: i32;
let mut _5: i32;
let mut _6: i32;
2023-05-13 07:30:40 -05:00
let mut _11: BigStruct;
2023-05-13 09:19:31 -05:00
let mut _16: &&BigStruct;
let mut _17: &BigStruct;
let mut _18: &BigStruct;
let mut _19: &BigStruct;
let mut _20: &BigStruct;
let mut _21: &BigStruct;
scope 1 {
2023-06-06 08:47:00 -05:00
debug s => _1;
let _2: i32;
scope 2 {
2023-06-06 08:47:00 -05:00
debug a => _2;
let _4: i32;
scope 3 {
2023-06-06 08:47:00 -05:00
debug b => _4;
2023-05-13 07:30:40 -05:00
let _7: S;
let _8: u8;
let _9: f32;
let _10: S;
scope 4 {
debug a => _7;
debug b => _8;
debug c => _9;
debug d => _10;
2023-05-13 09:19:31 -05:00
let _12: S;
let _13: u8;
let _14: f32;
let _15: S;
scope 5 {
debug a => _12;
debug b => _13;
debug c => _14;
debug d => _15;
}
2023-05-13 07:30:40 -05:00
}
}
}
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
_1 = S(const 1_i32);
StorageLive(_2);
StorageLive(_3);
- _3 = (_1.0: i32);
- _2 = Add(move _3, const 2_i32);
+ _3 = const 1_i32;
+ _2 = const 3_i32;
StorageDead(_3);
(_1.0: i32) = const 3_i32;
StorageLive(_4);
StorageLive(_5);
- _5 = _2;
+ _5 = const 3_i32;
StorageLive(_6);
- _6 = (_1.0: i32);
- _4 = Add(move _5, move _6);
+ _6 = const 3_i32;
+ _4 = const 6_i32;
StorageDead(_6);
StorageDead(_5);
2023-05-13 07:30:40 -05:00
StorageLive(_11);
_11 = const _;
StorageLive(_7);
2023-05-13 09:19:31 -05:00
- _7 = (_11.0: S);
2023-05-13 07:30:40 -05:00
+ _7 = const S(1_i32);
StorageLive(_8);
- _8 = (_11.1: u8);
+ _8 = const 5_u8;
StorageLive(_9);
- _9 = (_11.2: f32);
+ _9 = const 7f32;
StorageLive(_10);
2023-05-13 09:19:31 -05:00
- _10 = (_11.3: S);
2023-05-13 07:30:40 -05:00
+ _10 = const S(13_i32);
StorageDead(_11);
2023-05-13 09:19:31 -05:00
StorageLive(_16);
_16 = const {alloc1: &&BigStruct};
_17 = deref_copy (*_16);
StorageLive(_12);
_18 = deref_copy (*_16);
2023-09-07 12:13:58 -05:00
- _12 = ((*_18).0: S);
+ _12 = const S(1_i32);
2023-05-13 09:19:31 -05:00
StorageLive(_13);
_19 = deref_copy (*_16);
2023-09-07 12:13:58 -05:00
- _13 = ((*_19).1: u8);
+ _13 = const 5_u8;
2023-05-13 09:19:31 -05:00
StorageLive(_14);
_20 = deref_copy (*_16);
2023-09-07 12:13:58 -05:00
- _14 = ((*_20).2: f32);
+ _14 = const 7f32;
2023-05-13 09:19:31 -05:00
StorageLive(_15);
_21 = deref_copy (*_16);
2023-09-07 12:13:58 -05:00
- _15 = ((*_21).3: S);
+ _15 = const S(13_i32);
2023-05-13 09:19:31 -05:00
StorageDead(_16);
2023-06-06 08:47:00 -05:00
_0 = const ();
2023-05-13 09:19:31 -05:00
StorageDead(_15);
StorageDead(_14);
StorageDead(_13);
StorageDead(_12);
2023-05-13 07:30:40 -05:00
StorageDead(_10);
StorageDead(_9);
StorageDead(_8);
StorageDead(_7);
2023-06-06 08:47:00 -05:00
StorageDead(_4);
StorageDead(_2);
StorageDead(_1);
return;
}
}
2023-05-13 09:19:31 -05:00
alloc1 (static: STAT, size: 8, align: 8) {
╾───────alloc15───────╼ │ ╾──────╼
}
alloc15 (size: 16, align: 4) {
01 00 00 00 00 00 e0 40 0d 00 00 00 05 __ __ __ │ .......@.....░░░
}