rust/tests/mir-opt/gvn.non_freeze.GVN.panic-unwind.diff

28 lines
554 B
Diff
Raw Normal View History

2024-04-07 11:23:16 -05:00
- // MIR for `non_freeze` before GVN
+ // MIR for `non_freeze` after GVN
fn non_freeze(_1: T) -> () {
let mut _0: ();
let mut _2: T;
let mut _3: &T;
bb0: {
2024-08-18 16:26:34 -05:00
_2 = copy _1;
2024-04-07 11:23:16 -05:00
_3 = &_1;
2024-08-18 16:26:34 -05:00
_0 = opaque::<&T>(copy _3) -> [return: bb1, unwind continue];
2024-04-07 11:23:16 -05:00
}
bb1: {
2024-08-18 16:26:34 -05:00
_0 = opaque::<T>(copy _2) -> [return: bb2, unwind continue];
2024-04-07 11:23:16 -05:00
}
bb2: {
2024-08-18 16:26:34 -05:00
_0 = opaque::<T>(copy (*_3)) -> [return: bb3, unwind continue];
2024-04-07 11:23:16 -05:00
}
bb3: {
return;
}
}