[PATCH] D107713: [NFC] Fix the formula for reciprocal calculation.

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 8 07:00:50 PDT 2021


LuoYuanke added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:22880
 /// For the reciprocal, we need to find the zero of the function:
-///   F(X) = A X - 1 [which has a zero at X = 1/A]
 ///     =>
----------------
The original formula (F(X) = A X - 1) is mis-leading. It doesn't fit "X_{i+1} = X_i - F(X_i)/F'(X_i)"


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107713/new/

https://reviews.llvm.org/D107713



More information about the llvm-commits mailing list