-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[InstCombine] Missed optimization for select a%2==0, (a/2*2)*(a/2*2), 0 #71533
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
Comments
I'd love to work on this if possible? |
Sure, thanks for contribution. |
Note that the The general issue is making use of KnownBits information inside select arms. |
Thank you @nikic, |
Making good progress on this, just have some edge cases that need tidying up. |
When I played with InstCombine, I generated something missed-optimized.
No real-world motivation, but it seems to be easy to implement.
Missed example.
Proof.
The text was updated successfully, but these errors were encountered: