rust/tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.panic-abort.diff

54 lines
1.2 KiB
Diff
Raw Normal View History

- // MIR for `test` before SimplifyComparisonIntegral
+ // MIR for `test` after SimplifyComparisonIntegral
fn test(_1: T) -> () {
2023-06-06 08:47:00 -05:00
debug x => _1;
let mut _0: ();
let _2: &[T];
let _3: &[T; 3];
2023-03-12 09:10:30 -05:00
let _4: [T; 3];
let mut _5: usize;
let mut _6: bool;
let mut _10: !;
scope 1 {
2023-06-06 08:47:00 -05:00
debug v => _2;
let _7: &T;
let _8: &T;
let _9: &T;
scope 2 {
debug v1 => _7;
debug v2 => _8;
debug v3 => _9;
}
}
bb0: {
2023-03-12 09:10:30 -05:00
StorageLive(_4);
2024-08-18 16:26:34 -05:00
_4 = [copy _1, copy _1, copy _1];
2023-03-12 09:10:30 -05:00
_3 = &_4;
2024-08-18 16:26:34 -05:00
_2 = copy _3 as &[T] (PointerCoercion(Unsize));
2024-06-02 21:41:00 -05:00
nop;
nop;
2023-04-23 11:15:22 -05:00
goto -> bb2;
}
bb1: {
_10 = core::panicking::panic(const "internal error: entered unreachable code") -> unwind unreachable;
}
bb2: {
StorageLive(_7);
_7 = &(*_2)[0 of 3];
StorageLive(_8);
_8 = &(*_2)[1 of 3];
StorageLive(_9);
_9 = &(*_2)[2 of 3];
StorageDead(_9);
StorageDead(_8);
StorageDead(_7);
2023-03-12 09:10:30 -05:00
StorageDead(_4);
2023-06-06 08:47:00 -05:00
return;
}
}