[llvm] [InstCombine] Fold ((X + AddC) & Mask) ^ Mask to (~AddC - X) & Mask (PR #174278)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 01:05:41 PST 2026
================
----------------
nikic wrote:
These variable cases already fold prior to this change: https://llvm.godbolt.org/z/zbvxdM8jr It's okay to include a test case for completeness, but I think the nsw/nuw testing should happen on the constant mask case that actually goes through this fold.
https://github.com/llvm/llvm-project/pull/174278
More information about the llvm-commits
mailing list