[llvm] [InstCombine] Fold zext(icmp ne X, C) to X - C when X is in (C, C+1) (PR #208914)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 09:52:11 PDT 2026


muhammadshayanasim1-web wrote:

The issue #207218 has cases very similar to the fold most recently mentioned in #68503 (which is implemented in InstCombine). I think this fold should be in InstCombine but I can implement it in CVP if that is more suitable.


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


More information about the llvm-commits mailing list