blob: 30c3b0bcfa1d7625f70f0b95d9b794a77a2ca6a6 [file] [edit]
- // 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: {
StorageLive(_1);
StorageLive(_2);
_2 = const false;
- _1 = copy _2;
+ _1 = const false;
StorageDead(_2);
- switchInt(copy _1) -> [0: bb2, otherwise: bb1];
+ switchInt(const false) -> [0: bb2, otherwise: bb1];
}
bb1: {
_0 = noop() -> [return: bb2, unwind unreachable];
}
bb2: {
StorageDead(_1);
return;
}
}