rust/tests/mir-opt/const_prop/offset_of.concrete.GVN.panic-unwind.diff

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

69 lines
1.9 KiB
Diff
Raw Normal View History

2023-09-20 16:43:33 -05:00
- // MIR for `concrete` before GVN
+ // MIR for `concrete` after GVN
2023-06-08 07:11:31 -05:00
fn concrete() -> () {
let mut _0: ();
let _1: usize;
scope 1 {
debug x => _1;
let _2: usize;
2023-06-08 07:11:31 -05:00
scope 2 {
debug y => _2;
let _3: usize;
2023-06-08 07:11:31 -05:00
scope 3 {
debug z0 => _3;
let _4: usize;
2023-06-08 07:11:31 -05:00
scope 4 {
debug z1 => _4;
let _5: usize;
2023-08-15 14:10:45 -05:00
scope 5 {
debug eA0 => _5;
let _6: usize;
2023-08-15 14:10:45 -05:00
scope 6 {
debug eA1 => _6;
let _7: usize;
2023-08-15 14:10:45 -05:00
scope 7 {
debug eC => _7;
2023-08-15 14:10:45 -05:00
}
}
}
2023-06-08 07:11:31 -05:00
}
}
}
}
bb0: {
StorageLive(_1);
- _1 = OffsetOf(Alpha, [(0, 0)]);
+ _1 = const 4_usize;
2023-06-08 07:11:31 -05:00
StorageLive(_2);
- _2 = OffsetOf(Alpha, [(0, 1)]);
+ _2 = const 0_usize;
2023-06-08 07:11:31 -05:00
StorageLive(_3);
- _3 = OffsetOf(Alpha, [(0, 2), (0, 0)]);
+ _3 = const 2_usize;
2023-06-08 07:11:31 -05:00
StorageLive(_4);
- _4 = OffsetOf(Alpha, [(0, 2), (0, 1)]);
+ _4 = const 3_usize;
2023-06-08 07:11:31 -05:00
StorageLive(_5);
- _5 = OffsetOf(Epsilon, [(0, 0)]);
+ _5 = const 1_usize;
2023-06-08 07:11:31 -05:00
StorageLive(_6);
- _6 = OffsetOf(Epsilon, [(0, 1)]);
2023-06-08 07:11:31 -05:00
+ _6 = const 2_usize;
StorageLive(_7);
- _7 = OffsetOf(Epsilon, [(2, 0)]);
+ _7 = const 4_usize;
2023-06-08 07:11:31 -05:00
_0 = const ();
StorageDead(_7);
StorageDead(_6);
2023-06-08 07:11:31 -05:00
StorageDead(_5);
StorageDead(_4);
2023-06-08 07:11:31 -05:00
StorageDead(_3);
StorageDead(_2);
2023-06-08 07:11:31 -05:00
StorageDead(_1);
return;
}
}