2020-07-18 22:43:51 +00:00
|
|
|
- // MIR for `test` before ConstProp
|
|
|
|
+ // MIR for `test` after ConstProp
|
|
|
|
|
|
|
|
fn test(_1: bool, _2: bool) -> bool {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug x => _1;
|
|
|
|
debug y => _2;
|
|
|
|
let mut _0: bool;
|
|
|
|
let mut _3: bool;
|
|
|
|
let mut _4: bool;
|
|
|
|
let mut _5: bool;
|
|
|
|
let mut _6: bool;
|
2020-07-18 22:43:51 +00:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_3);
|
|
|
|
- _3 = BitOr(_2, const true);
|
|
|
|
+ _3 = const true;
|
|
|
|
StorageLive(_5);
|
|
|
|
- _5 = BitAnd(_1, const false);
|
|
|
|
- _0 = BitAnd(move _3, move _5);
|
|
|
|
+ _5 = const false;
|
|
|
|
+ _0 = const false;
|
|
|
|
StorageDead(_5);
|
|
|
|
StorageDead(_3);
|
|
|
|
return;
|
2020-07-18 22:43:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|