[llvm] [LangRef] Clarify the semantics of the contract fast-math flag. (PR #187340)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 13:40:28 PDT 2026
arsenm wrote:
> AMDGPU uses it to convert 1.0 / sqrt(x) to rsqrt(x), which might be a violation of the last paragraph, given that the comment says that rsqrt(x) has 1ulp accuracy.
I think the last paragraph is overly strict; why would it have to be a new correctly rounded result? The new thing isn't correctly rounded, but the net result is more accurate than performing the separate operations
https://github.com/llvm/llvm-project/pull/187340
More information about the llvm-commits
mailing list