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?
to your account
math.IsNaN and math.IsInf are very unlikely to return true. It would be nice to use this information for code layout.
I have hacked together a prototype using SSA rules but there is probably a better way to do it. The prototype is here: https://go-review.googlesource.com/c/go/+/64191. Feel free to take that and improve it.
The text was updated successfully, but these errors were encountered:
Haven't looked at the CL, but naively it seems like the likelyadjust pass is the right place to do this.
Sorry, something went wrong.
I would certainly believe that math.IsNaN is usually false. I suspect that math.IsInf depends on the application.
Successfully merging a pull request may close this issue.