-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
InstCombine misses freeze of i1 select fold which appears in X86ISelLowering #131824
Comments
We should probably be more aggressive about pushing freeze upwards in cases where it can be done by dropping flags only (rather than inserting multiple freezes). |
It seems eventually the redudant instructions are eliminated: |
I may have over-reduced the example. This is closer to the original pattern:
opt -O3 | llc has more instructions |
still same: |
On x86. aarch64 has more instructions: https://alive2.llvm.org/ce/z/aCobwf |
https://alive2.llvm.org/ce/z/HRpvwJ
I noticed this while looking at random IR samples in X86ISelLowering.cpp's output.
The text was updated successfully, but these errors were encountered: