2023-09-20 16:43:33 -05:00
|
|
|
- // MIR for `invalid_bool` before GVN
|
|
|
|
+ // MIR for `invalid_bool` after GVN
|
2023-02-24 20:32:52 -06:00
|
|
|
|
|
|
|
fn invalid_bool() -> bool {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: bool;
|
2023-02-24 20:32:52 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- _0 = const -1_i8 as bool (Transmute);
|
|
|
|
+ _0 = const {transmute(0xff): bool};
|
|
|
|
return;
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|