-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redundant similar Relop checks can be eliminated #72509
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsAs mentioned in #68822 (comment), if we have checks
Because of this, we end up generating:
|
@dotnet/jit-contrib |
Sort of duplicates #65327 |
Fixed by #72979 |
As mentioned in #68822 (comment), if we have checks
V12 <= 0
and thenV12 < 0
, we do not eliminate the later check, even though we could. In below example, we can just see that[001094]
doesV12 <= 0
and few nodes later, we have[001333]
which doesV12 < 0
and should just eliminate[001333]
because it is already taken care? Currently, since the two operators are different (LE
andLT
), they get different value numbers and we don't even bother considering them for assertion prop it seems.Because of this, we end up generating:
The text was updated successfully, but these errors were encountered: