rust/tests/mir-opt/reference_prop.dominate_storage.ReferencePropagation.diff

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

36 lines
753 B
Diff
Raw Normal View History

- // MIR for `dominate_storage` before ReferencePropagation
+ // MIR for `dominate_storage` after ReferencePropagation
fn dominate_storage() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let mut _1: i32;
let mut _2: &i32;
let mut _3: i32;
let mut _4: bool;
let mut _5: i32;
let mut _6: bool;
bb0: {
2023-06-06 08:47:00 -05:00
goto -> bb1;
}
bb1: {
2023-06-06 08:47:00 -05:00
_1 = const 5_i32;
_2 = &_1;
goto -> bb2;
}
bb2: {
2023-06-06 08:47:00 -05:00
_5 = copy (*_2);
2023-06-23 11:53:09 -05:00
_0 = opaque::<i32>(copy _5) -> [return: bb3, unwind continue];
}
bb3: {
2023-06-06 08:47:00 -05:00
StorageDead(_1);
StorageLive(_1);
_6 = const true;
switchInt(copy _6) -> [0: bb3, otherwise: bb1];
}
}