2020-09-17 16:27:49 +00:00
|
|
|
- // MIR for `encode` before SimplifyBranchSame
|
|
|
|
+ // MIR for `encode` after SimplifyBranchSame
|
|
|
|
|
|
|
|
fn encode(_1: Type) -> Type {
|
2022-07-27 18:47:42 +00:00
|
|
|
debug v => _1; // in scope 0 at $DIR/76803_regression.rs:+0:15: +0:16
|
|
|
|
let mut _0: Type; // return place in scope 0 at $DIR/76803_regression.rs:+0:27: +0:31
|
|
|
|
let mut _2: isize; // in scope 0 at $DIR/76803_regression.rs:+2:9: +2:16
|
2020-09-17 16:27:49 +00:00
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 18:47:42 +00:00
|
|
|
_2 = discriminant(_1); // scope 0 at $DIR/76803_regression.rs:+1:11: +1:12
|
2022-12-04 00:03:27 +00:00
|
|
|
switchInt(move _2) -> [0: bb2, otherwise: bb1]; // scope 0 at $DIR/76803_regression.rs:+1:5: +1:12
|
2020-09-17 16:27:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-07-27 18:47:42 +00:00
|
|
|
_0 = move _1; // scope 0 at $DIR/76803_regression.rs:+3:14: +3:15
|
|
|
|
goto -> bb3; // scope 0 at $DIR/76803_regression.rs:+3:14: +3:15
|
2020-09-17 16:27:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2022-07-27 18:47:42 +00:00
|
|
|
Deinit(_0); // scope 0 at $DIR/76803_regression.rs:+2:20: +2:27
|
|
|
|
discriminant(_0) = 1; // scope 0 at $DIR/76803_regression.rs:+2:20: +2:27
|
|
|
|
goto -> bb3; // scope 0 at $DIR/76803_regression.rs:+2:20: +2:27
|
2020-09-17 17:10:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2022-07-27 18:47:42 +00:00
|
|
|
return; // scope 0 at $DIR/76803_regression.rs:+5:2: +5:2
|
2020-09-17 16:27:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|