-
Notifications
You must be signed in to change notification settings - Fork 828
[OptimizeInstructions] Canonicalizations for relational ops near signed & unsigned min/max #4282
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
Conversation
|
Fuzzed |
|
@tlively Could you take a little look at this old PR please? |
tlively
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with that one comment.
|
@tlively Thanks! |
| (local.get $y) | ||
| (i64.const 9223372036854775806) | ||
| )) | ||
| ;; (unsigned)x <= u_max - 1 ==> x == u_max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text here is wrong, == should be != (but the optimizer output is right).
Same in the comment below, != should be ==.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Good catch. Do you want a separate PR which fix this comment or just append this minor fix with some other existing PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A separate PR might be simplest. I am not up to date on the other PRs and am not sure when they will land. A separate PR can be landed immediately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's continue of #4272