[PATCH] D22975: Add new nodes for computing the Newton series

Evandro Menezes via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 13:46:28 PDT 2016


evandro added a comment.

Thank you.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14695
@@ -14655,1 +14694,3 @@
+              ? buildSqrtNROneConst(Op, Est, Iterations, Flags, Reciprocal)
+              : buildSqrtNRTwoConst(Op, Est, Iterations, Flags, Reciprocal);
     }
----------------
n.bozhenov wrote:
> A more consistent way to choose a refinement method would be to replace the boolean UseOneConstNR value with some enum, let the target set this enum and choose the refinement method based on the enum value.
> 
> Yet another option would be to return an already refined value from ARMTargetLowering::getRsqrtEstimate and set Iterations to 0. In this case we wouldn't need the buildSqrtNRNative function.
> 
I like this suggestion.  I'll explore it and get back to y'all.


Repository:
  rL LLVM

https://reviews.llvm.org/D22975





More information about the llvm-commits mailing list