25 lines
543 B
Diff
25 lines
543 B
Diff
- // MIR for `main` before SimplifyConstCondition-after-inst-simplify
|
|
+ // MIR for `main` after SimplifyConstCondition-after-inst-simplify
|
|
|
|
fn main() -> () {
|
|
let mut _0: ();
|
|
let mut _1: bool;
|
|
let _2: ();
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
_1 = const false;
|
|
- switchInt(move _1) -> [0: bb2, otherwise: bb1];
|
|
+ goto -> bb2;
|
|
}
|
|
|
|
bb1: {
|
|
_2 = noop() -> [return: bb2, unwind continue];
|
|
}
|
|
|
|
bb2: {
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
}
|
|
|