[PATCH] D28508: [NVPTX] Implement NVPTXTargetLowering::getSqrtEstimate.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 14:23:43 PST 2017


jlebar updated this revision to Diff 86346.
jlebar added a comment.

Implement getSqrtEstimate API correctly.

Also lower approx sqrt(x) as x * rsqrt(x) when x is a double, since that was easy.


https://reviews.llvm.org/D28508

Files:
  llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
  llvm/lib/Target/NVPTX/NVPTXISelLowering.h
  llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
  llvm/test/CodeGen/NVPTX/fast-math.ll
  llvm/test/CodeGen/NVPTX/rsqrt.ll
  llvm/test/CodeGen/NVPTX/sqrt-approx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28508.86346.patch
Type: text/x-patch
Size: 11866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170130/a34fa9a8/attachment.bin>


More information about the llvm-commits mailing list