mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
30 lines
472 B
Diff
30 lines
472 B
Diff
- // MIR for `f` before CopyProp
|
|
+ // MIR for `f` after CopyProp
|
|
|
|
fn f(_1: bool) -> bool {
|
|
let mut _0: bool;
|
|
let mut _2: bool;
|
|
let mut _3: bool;
|
|
|
|
bb0: {
|
|
goto -> bb1;
|
|
}
|
|
|
|
bb1: {
|
|
_3 = _1;
|
|
switchInt(_3) -> [0: bb3, otherwise: bb2];
|
|
}
|
|
|
|
bb2: {
|
|
_2 = _3;
|
|
_1 = const false;
|
|
goto -> bb1;
|
|
}
|
|
|
|
bb3: {
|
|
_0 = _2;
|
|
return;
|
|
}
|
|
}
|
|
|