mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 19:57:02 +00:00

Fold arithmetic identities in GVN Extracted from https://github.com/rust-lang/rust/pull/111344 This PR implements a few arithmetic folds for unary and binary operations. This should take care of the missed optimizations introduced by https://github.com/rust-lang/rust/pull/116012.