2023-06-01 01:58:20 -05:00
|
|
|
- // MIR for `unchecked` before LowerIntrinsics
|
|
|
|
+ // MIR for `unchecked` after LowerIntrinsics
|
|
|
|
|
2024-03-30 02:36:45 -05:00
|
|
|
fn unchecked(_1: i32, _2: i32, _3: u32) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug a => _1;
|
|
|
|
debug b => _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
debug c => _3;
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
2024-03-30 02:36:45 -05:00
|
|
|
let _4: i32;
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _5: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _6: i32;
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _8: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _9: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
let mut _11: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _12: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
let mut _14: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _15: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
let mut _17: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _18: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
let mut _20: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _21: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
let mut _23: i32;
|
2024-03-30 02:36:45 -05:00
|
|
|
let mut _24: i32;
|
|
|
|
let mut _26: i32;
|
|
|
|
let mut _27: u32;
|
|
|
|
let mut _29: i32;
|
|
|
|
let mut _30: u32;
|
2023-06-01 01:58:20 -05:00
|
|
|
scope 1 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _a => _4;
|
|
|
|
let _7: i32;
|
2023-06-01 01:58:20 -05:00
|
|
|
scope 2 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _b => _7;
|
|
|
|
let _10: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
scope 3 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _c => _10;
|
|
|
|
let _13: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
scope 4 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _x => _13;
|
|
|
|
let _16: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
scope 5 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _y => _16;
|
|
|
|
let _19: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
scope 6 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _i => _19;
|
|
|
|
let _22: i32;
|
2023-06-03 02:41:50 -05:00
|
|
|
scope 7 {
|
2024-03-30 02:36:45 -05:00
|
|
|
debug _j => _22;
|
|
|
|
let _25: i32;
|
|
|
|
scope 8 {
|
|
|
|
debug _k => _25;
|
|
|
|
let _28: i32;
|
|
|
|
scope 9 {
|
|
|
|
debug _l => _28;
|
|
|
|
}
|
|
|
|
}
|
2023-06-03 02:41:50 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-01 01:58:20 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_4);
|
|
|
|
StorageLive(_5);
|
2024-08-18 16:26:34 -05:00
|
|
|
_5 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_6);
|
2024-08-18 16:26:34 -05:00
|
|
|
_6 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _4 = unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
|
|
|
|
+ _4 = AddUnchecked(move _5, move _6);
|
2023-06-06 08:47:00 -05:00
|
|
|
+ goto -> bb1;
|
2023-06-01 01:58:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_6);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_5);
|
|
|
|
StorageLive(_7);
|
|
|
|
StorageLive(_8);
|
2024-08-18 16:26:34 -05:00
|
|
|
_8 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_9);
|
2024-08-18 16:26:34 -05:00
|
|
|
_9 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _7 = unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
|
|
|
|
+ _7 = SubUnchecked(move _8, move _9);
|
2023-06-06 08:47:00 -05:00
|
|
|
+ goto -> bb2;
|
2023-06-01 01:58:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_9);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_8);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageLive(_10);
|
|
|
|
StorageLive(_11);
|
2024-08-18 16:26:34 -05:00
|
|
|
_11 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_12);
|
2024-08-18 16:26:34 -05:00
|
|
|
_12 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _10 = unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
|
|
|
|
+ _10 = MulUnchecked(move _11, move _12);
|
2023-06-03 02:41:50 -05:00
|
|
|
+ goto -> bb3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_12);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_11);
|
|
|
|
StorageLive(_13);
|
|
|
|
StorageLive(_14);
|
2024-08-18 16:26:34 -05:00
|
|
|
_14 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_15);
|
2024-08-18 16:26:34 -05:00
|
|
|
_15 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _13 = unchecked_div::<i32>(move _14, move _15) -> [return: bb4, unwind unreachable];
|
|
|
|
+ _13 = Div(move _14, move _15);
|
2023-06-03 02:41:50 -05:00
|
|
|
+ goto -> bb4;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_15);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_14);
|
|
|
|
StorageLive(_16);
|
|
|
|
StorageLive(_17);
|
2024-08-18 16:26:34 -05:00
|
|
|
_17 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_18);
|
2024-08-18 16:26:34 -05:00
|
|
|
_18 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _16 = unchecked_rem::<i32>(move _17, move _18) -> [return: bb5, unwind unreachable];
|
|
|
|
+ _16 = Rem(move _17, move _18);
|
2023-06-03 02:41:50 -05:00
|
|
|
+ goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_18);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_17);
|
|
|
|
StorageLive(_19);
|
|
|
|
StorageLive(_20);
|
2024-08-18 16:26:34 -05:00
|
|
|
_20 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_21);
|
2024-08-18 16:26:34 -05:00
|
|
|
_21 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _19 = unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
|
|
|
|
+ _19 = ShlUnchecked(move _20, move _21);
|
2023-06-03 02:41:50 -05:00
|
|
|
+ goto -> bb6;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_21);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_20);
|
|
|
|
StorageLive(_22);
|
|
|
|
StorageLive(_23);
|
2024-08-18 16:26:34 -05:00
|
|
|
_23 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_24);
|
2024-08-18 16:26:34 -05:00
|
|
|
_24 = copy _2;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _22 = unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
|
|
|
|
+ _22 = ShrUnchecked(move _23, move _24);
|
2023-06-03 02:41:50 -05:00
|
|
|
+ goto -> bb7;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_24);
|
2023-06-03 02:41:50 -05:00
|
|
|
StorageDead(_23);
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_25);
|
|
|
|
StorageLive(_26);
|
2024-08-18 16:26:34 -05:00
|
|
|
_26 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_27);
|
2024-08-18 16:26:34 -05:00
|
|
|
_27 = copy _3;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _25 = unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
|
|
|
|
+ _25 = ShlUnchecked(move _26, move _27);
|
|
|
|
+ goto -> bb8;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
|
|
|
StorageDead(_27);
|
|
|
|
StorageDead(_26);
|
|
|
|
StorageLive(_28);
|
|
|
|
StorageLive(_29);
|
2024-08-18 16:26:34 -05:00
|
|
|
_29 = copy _1;
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageLive(_30);
|
2024-08-18 16:26:34 -05:00
|
|
|
_30 = copy _3;
|
2024-03-30 02:36:45 -05:00
|
|
|
- _28 = unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
|
|
|
|
+ _28 = ShrUnchecked(move _29, move _30);
|
|
|
|
+ goto -> bb9;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb9: {
|
|
|
|
StorageDead(_30);
|
|
|
|
StorageDead(_29);
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const ();
|
2024-03-30 02:36:45 -05:00
|
|
|
StorageDead(_28);
|
|
|
|
StorageDead(_25);
|
|
|
|
StorageDead(_22);
|
|
|
|
StorageDead(_19);
|
|
|
|
StorageDead(_16);
|
|
|
|
StorageDead(_13);
|
|
|
|
StorageDead(_10);
|
|
|
|
StorageDead(_7);
|
|
|
|
StorageDead(_4);
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2023-06-01 01:58:20 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|