[llvm] [VectorCombine] Fold (icmp eq/ne (reduce.add X), 0) to reduce.umax (PR #180001)
Guy David via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 08:18:05 PST 2026
guy-david wrote:
Good point about the eq/ne. I am thinking about using ValueTracking's `computeConstantRange` to simplify the nowrap determination. However, the implementation is lacking a bit and fails to analyze `add (sext i1, sext i1)` so perhaps it's worth to extend it before adding this patch.
https://github.com/llvm/llvm-project/pull/180001
More information about the llvm-commits
mailing list