[llvm] [NVPTX] Improve support for rsqrt.approx (PR #89417)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 13:26:44 PDT 2024
================
@@ -30,6 +30,10 @@ using namespace llvm;
#define DEBUG_TYPE "nvptx-isel"
#define PASS_NAME "NVPTX DAG->DAG Pattern Instruction Selection"
+static cl::opt<bool>
+ DisableRsqrtOpt("nvptx-disable-rsqrt-opt", cl::init(false), cl::Hidden,
----------------
AlexMaclean wrote:
hmm, what about `-nvptx-rsqrt-approx-opt` or `-nvptx-rsqrt-approx-folding`? I think it would be good to make clear that this controls optimizing `sqrt` to `rsqrt` not whether `rsqrt` will be emitted at all.
https://github.com/llvm/llvm-project/pull/89417
More information about the llvm-commits
mailing list