[llvm] [InstCombine] Generalize `(A + 1) + ~B` fold to any constant (PR #188271)

Piotr Fusik via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 07:06:11 PDT 2026


================

----------------
pfusik wrote:

Thanks for spotting another pessimization for multi-use of both `A + C` and `~B`. Fixed.
I also blocked what I described above as a tie - it's not a tie if the transform produces an extra add with a large constant.

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


More information about the llvm-commits mailing list