[PATCH] D143074: [LangRef] improve documentation of SNaN in the default FP environment
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 07:21:55 PST 2023
spatel added a comment.
In D143074#4125991 <https://reviews.llvm.org/D143074#4125991>, @jyknight wrote:
> Only one final nit: "Floating-point math operations treat all NaNs as quiet NaNs." sounds like they _always_ do, so how about: "Floating-point math operations are permitted to treat all NaNs as if they were quiet NaNs." instead?
Yes, that's a better description. If the optimizer doesn't know if something is a NaN at compile-time, then it's going to pass through to the backend and asm, so the final behavior depends on the target.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143074/new/
https://reviews.llvm.org/D143074
More information about the llvm-commits
mailing list