-
Notifications
You must be signed in to change notification settings - Fork 11.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
X86 backend crashed with assertion Do not know how to soft promote this operator's operand!
for bf16 constants
#63017
Comments
@llvm/issue-subscribers-backend-x86 |
Thanks for reporting it. I'll take a look. |
Candidate patch: https://reviews.llvm.org/D151778 |
@phoebewang I have the same crash with a slight different case:
Let me know if you need more info? |
@phoebewang A similar crash occurs when the D152928 wip patch is applied and we run |
No idea if I forgot to verify it with this case or it's new regression caused by latter patches. Anyway, it can be fixed by https://reviews.llvm.org/D155952 |
Thanks @RKSimon , but I failed to apply D152928 in my local. Would you mind to have a try with D155952 ? |
I can build it locally now, will try it myself. |
D155961 will solve it ✌️ |
Fixes #63017 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D155952
…BF16 Fixes #63017 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D155952
Fixes root cause of #63017. The reason is similar to BUILD_VECTOR. We have legal vector type but still soft promote for scalar type. So we need to customize these scalar to vector nodes. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D155961
Found this problem when investigating #63017 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D156050
Repro with
bin/llc -mtriple=x86_64-unknown-linux-gnu -mcpu="znver4"
The text was updated successfully, but these errors were encountered: