-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
handle missing op freeze #186
Conversation
Do you have some LLVM IR that reproduces the issue? |
patches here need to be sent to https://github.com/llvm/llvm-project or https://github.com/ziglang/zig and then pulled back in |
This project does not carry functional patches from LLVM, only patches to help get it to build from source. You have to work with LLVM upstream if you want this change. |
No, I don't. I checked the error message zig-bootstrap/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp Lines 2578 to 2588 in a234f00
I found this OP by changing the error log message to output the OP name because the And when bootstrapping I think this OP is generated by compiling some code of |
OK, got it. |
OK, I've got some from this commit: llvm/llvm-project@0019c2f
|
Seems to be a good repro: https://godbolt.org/z/PPfvWjjG5 I think your proposed fix is reasonable, especially considering that commit. I'm familiar with the LLVM contribution process now, so let me know if you'd like any help submitting the fix upstream. 🙂 |
I created a PR to llvm llvm/llvm-project#107791 |
Nice work. If it is merged upstream we can carry the patch |
@alexrp This PR is merged into |
I think you would need to ask the LLVM LoongArch maintainers (ping them on the PR) if they think it's worth backporting for the next patch release. But if they prefer not to backport it for some reason, then as Andrew said, we can apply the patch to this repo until LLVM 20 since it has been merged upstream. |
it seems that freeze is missing from PromoteFloatResult