-
Notifications
You must be signed in to change notification settings - Fork 242
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
LVN missed opportunity for eq? #99
Comments
Also for comparison operators, we might be able to fold when only one argument is constant. E.g. |
Yeah, that seems quite plausible! I'd be happy to merge those identities in the example LVN implementation if they're not too tricky to implement. |
Since |
We do have |
Well that's embarrassing. I'll get a patch in for this. |
As far as I understand, if two values have the same value number, they are guaranteed to be the same at runtime. As a result, for operator
eq
, if both operands have the same value number (even if they are not constants) we could fold the operator to a constant true.The text was updated successfully, but these errors were encountered: