[llvm] [InstCombine] Generalize `(A + 1) + ~B` fold to any constant (PR #188271)
Ricardo Jesus via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 06:04:59 PDT 2026
================
----------------
rj-jesus wrote:
I think you're missing multi-use tests for ~B, right? And specifically for when both A + C and ~B have multiple uses. Maybe capture the inner ADD and NOT separately so you can ensure at least one of them is one-use, or C == 1.
https://github.com/llvm/llvm-project/pull/188271
More information about the llvm-commits
mailing list