[InstCombine] fold icmp equality with sdiv and SMIN
This extends the fold from D126410 / 3952c905 to allow for the only case where it works with signed division: https://alive2.llvm.org/ce/z/k7_ypu (X s/ Y) == SMIN --> (X == SMIN) && (Y == 1) (X s/ Y) != SMIN --> (X != SMIN) || (Y != 1) This is another improvement based on #55695.
Loading
Please sign in to comment