os-rust/tests/mir-opt/simplify_match.main.GVN.panic-abort.diff
2024-01-07 01:42:57 +00:00

26 lines
499 B
Diff

- // MIR for `main` before GVN
+ // MIR for `main` after GVN
fn main() -> () {
let mut _0: ();
let mut _1: bool;
let _2: bool;
scope 1 {
debug x => _2;
}
bb0: {
_2 = const false;
- switchInt(_2) -> [0: bb2, otherwise: bb1];
+ switchInt(const false) -> [0: bb2, otherwise: bb1];
}
bb1: {
_0 = noop() -> [return: bb2, unwind unreachable];
}
bb2: {
return;
}
}