This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Fix the formula for reciprocal calculation.
ClosedPublic

Authored by LuoYuanke on Aug 8 2021, 5:31 AM.

Diff Detail

Event Timeline

LuoYuanke created this revision.Aug 8 2021, 5:31 AM
LuoYuanke requested review of this revision.Aug 8 2021, 5:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2021, 5:31 AM
LuoYuanke added inline comments.Aug 8 2021, 7:00 AM
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
22880

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)"

This revision was not accepted when it landed; it landed in state Needs Review.Aug 9 2021, 1:05 AM
This revision was automatically updated to reflect the committed changes.