Files
rust/compiler/rustc_mir_transform/src
bors 89e0576bd3 Auto merge of #106340 - saethlin:propagate-operands, r=oli-obk
Always permit ConstProp to exploit arithmetic identities

Fixes https://github.com/rust-lang/rust/issues/72751

Initially, I thought I would need to enable operand propagation then do something else, but actually https://github.com/rust-lang/rust/pull/74491 already has the fix for the issue in question! It looks like this optimization was put under MIR opt level 3 due to possible soundness/stability implications, then demoted further to MIR opt level 4 when MIR opt level 2 became associated with `--release`.

Perhaps in the past we were doing CTFE on optimized MIR? We aren't anymore, so this optimization has no stability implications.

r? `@oli-obk`
2023-01-09 11:59:51 +00:00
..
2022-12-20 22:28:22 +01:00
2022-10-01 10:03:06 +00:00
2022-08-30 01:40:14 -07:00
2022-08-30 01:40:14 -07:00
2022-12-20 22:10:40 +01:00
2022-08-30 01:40:14 -07:00
2022-10-01 10:03:06 +00:00
2022-12-25 18:01:07 +00:00
2022-12-19 00:04:28 +01:00