[llvm] [InstCombine] Fold (X + C) + (Y & ~C) to X + (Y | C) (PR #191334)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 08:46:54 PDT 2026


https://github.com/dtcxzyw commented:

Please provide generalized alive2 proof. Don't use specific constants in your proof. See also https://llvm.org/docs/InstCombineContributorGuide.html#use-generic-values-in-proofs.

BTW, can we further generalize this pattern into `(X + C) + (Y & D) -> X + (Y | C)`, where `C & D == 0` ?


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


More information about the llvm-commits mailing list