[PATCH] D22975: Compute the Newton series natively

Evandro Menezes via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 14:56:05 PDT 2016


evandro updated this revision to Diff 68734.
evandro added a comment.

I folded the checking when the argument is zero into `getSqrtEstimate()`.  I think that it makes sense when it returns no iterations, allowing the target to handle everything as is more optimal for it.


Repository:
  rL LLVM

https://reviews.llvm.org/D22975

Files:
  llvm/include/llvm/Target/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/AArch64/recp-fastmath.ll
  llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
  llvm/test/CodeGen/X86/sqrt-fastmath-mir.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22975.68734.patch
Type: text/x-patch
Size: 29206 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160819/f934d842/attachment.bin>


More information about the llvm-commits mailing list