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

Evandro Menezes via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 13:49:43 PDT 2016


evandro created this revision.
evandro added reviewers: n.bozhenov, t.p.northover.
evandro added subscribers: llvm-commits, spatel, zinovy.nis.
evandro set the repository for this revision to rL LLVM.
Herald added a subscriber: aemerson.

ARM and AArch64 are the only targets that I know of which sport instructions specialized to provide not only the initial estimate of the reciprocal and of the reciprocal square root, but also to partially perform the steps in the respective series.

This patch adds support for such targets by using special nodes for each series step instead of expanding the discrete polynomial.

Repository:
  rL LLVM

https://reviews.llvm.org/D22975

Files:
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/recp-fastmath.ll
  llvm/test/CodeGen/AArch64/sqrt-fastmath.ll

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


More information about the llvm-commits mailing list