[InstCombine] Canonicalize `icmp pred (X +/- C1), C2` into `icmp pred X, C2...
[InstCombine] Canonicalize `icmp pred (X +/- C1), C2` into `icmp pred X, C2 -/+ C1` with nowrap flag implied by with.overflow intrinsic (#75511) This patch tries to canonicalize the pattern `Overflow | icmp pred Res, C2` into `Overflow | icmp pred X, C2 +/- C1`, where `Overflow` and `Res` are return values of `xxx.with.overflow X, C1`. Alive2: https://alive2.llvm.org/ce/z/PhR_3S Fixes #75360.
parent
4faeb7db
Please register or sign in to comment