[llvm] [InstCombine] Canonicalize `(sub nuw Mask, X)` -> `(xor Mask, X)` (PR #122542)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 15:41:15 PST 2025


goldsteinn wrote:

The inability to fold the `xor` version w/ `add` leads to many regressions. OTOH there are definetly some positive cases.

I think we want to either just make this a simplification or we need some IR flag indicating the equivilence.

https://github.com/llvm/llvm-project/pull/122542


More information about the llvm-commits mailing list