[llvm] [AMDGPU] Use 1-iteration Newton-Raphson refinement for FP32 reciprocal. (PR #194716)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 08:55:47 PDT 2026


================

----------------
carlobertolli wrote:

if the code is memory bound and you are relying on masking memory latencies with useful computation, then the if-then-else structure might prevent that from happening. That's why it's hidden behind a flag.
I wrote a stress test where a bunch of workgroups and threads execute thousands of reciprocals (which cannot be folded) and the speedup is 1.5x without FTZ (~1.9x with FTZ).

https://github.com/llvm/llvm-project/pull/194716


More information about the llvm-commits mailing list