[PATCH] D73588: AMDGPU: Enhancement on FDIV lowering in AMDGPUCodeGenPrepare

Changpeng Fang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 11:08:03 PST 2020


cfang updated this revision to Diff 242955.
cfang added a comment.

Updated based on feedback:

1. replace arcp with afn
  - it is the ApproxFunc fast math bit that matters to use inaccurate rcp.
2. drop fpmath metadata since it will no longer be used after we visit fdiv here.


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

https://reviews.llvm.org/D73588

Files:
  llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-fdiv.ll
  llvm/test/CodeGen/AMDGPU/fdiv.f16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73588.242955.patch
Type: text/x-patch
Size: 39388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200206/921de967/attachment.bin>


More information about the llvm-commits mailing list