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

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

50 lines
1.1 KiB
Diff
Raw Normal View History

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