rust/tests/mir-opt/gvn.borrowed.GVN.panic-abort.diff

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

30 lines
705 B
Diff
Raw Permalink Normal View History

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