-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove UnsafeFPMath for LLVM 21+ #8851
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
Conversation
|
Uh oh, looks like this doesn't do anything anymore. We need to figure out the correct way to enable the equivalent of -fp-contract=fast |
|
Feel free to take the lead on this, and close this PR if you have better changes in mind. I made this PR just in case the fix is this simple, and all the build bots go green. I'm not really in the mood for LLVM shenanigans. 🥴 |
|
Maybe it's this? |
|
Oh we already set AllowFPOpFusion. And reassociation is turned on in set_fast_fp_math. I think this PR is the correct change. |
I see: the build bots could go green, and we still lose the performance benefits of FP optimizations. I can add that line for LLVM 21+ if you think that's it. |
Okay, then we'll wait for the bots. 😄 Thanks for chiming in so quickly. |
|
Any idea what's going on with correctness/extern_sort on Windows? |
|
It's a fluke I think. It did work on my other PR: https://buildbot.halide-lang.org/master/#/builders/267/builds/187#bb-step-39 which is rebased on this PR. |
I just triggered a rerun of that workflow. If it fails again, we can look more closely at it. |
|
Yeiiiy Thanks a lot! All green! Only need formal approval from someone. |
No description provided.