2023-01-15 14:16:28 -06:00
|
|
|
- // MIR for `f` before CopyProp
|
|
|
|
+ // MIR for `f` after CopyProp
|
|
|
|
|
|
|
|
fn f(_1: bool) -> bool {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: bool;
|
|
|
|
let mut _2: bool;
|
|
|
|
let mut _3: bool;
|
2023-01-15 14:16:28 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb1;
|
2023-01-15 14:16:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-08-18 16:26:34 -05:00
|
|
|
_3 = copy _1;
|
|
|
|
switchInt(copy _3) -> [0: bb3, otherwise: bb2];
|
2023-01-15 14:16:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-08-18 16:26:34 -05:00
|
|
|
_2 = copy _3;
|
2023-06-06 08:47:00 -05:00
|
|
|
_1 = const false;
|
|
|
|
goto -> bb1;
|
2023-01-15 14:16:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-08-18 16:26:34 -05:00
|
|
|
_0 = copy _2;
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2023-01-15 14:16:28 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|