[llvm] [InstCombine] Fold ((X + AddC) & Mask) ^ Mask to ((Mask - AddC) - X) & Mask (PR #174278)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 8 10:16:40 PST 2026
ParkHanbum wrote:
Hmm... I think the '%sub = subnsw i320, %x' syntax alone breaks the alive2 verification, as in the example shown by @antoniofrighetto. I thought this was caused by an unidentified problem, so I made an exception if it was INT_MIN, but if the reason for adding NSW is because X is calculated to be INT_MIN, then I don't think there's a problem with my patch. How do you see it?
https://github.com/llvm/llvm-project/pull/174278
More information about the llvm-commits
mailing list