Skip to content
Commit 49f8b051 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[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.
parent ed5be152
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment