mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
29 lines
608 B
Diff
29 lines
608 B
Diff
- // MIR for `borrowed` before GVN
|
|
+ // MIR for `borrowed` after GVN
|
|
|
|
fn borrowed(_1: u32) -> () {
|
|
let mut _0: ();
|
|
let mut _2: u32;
|
|
let mut _3: &u32;
|
|
|
|
bb0: {
|
|
_2 = _1;
|
|
_3 = &_1;
|
|
_0 = opaque::<&u32>(_3) -> [return: bb1, unwind continue];
|
|
}
|
|
|
|
bb1: {
|
|
- _0 = opaque::<u32>(_2) -> [return: bb2, unwind continue];
|
|
+ _0 = opaque::<u32>(_1) -> [return: bb2, unwind continue];
|
|
}
|
|
|
|
bb2: {
|
|
_0 = opaque::<u32>((*_3)) -> [return: bb3, unwind continue];
|
|
}
|
|
|
|
bb3: {
|
|
return;
|
|
}
|
|
}
|
|
|