[PATCH] D48569: [AMDGPU] Convert rcp to rcp_iflag

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 14:26:13 PDT 2018


rampitec created this revision.
rampitec added reviewers: b-sumner, arsenm.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

If a source of rcp instruction is a result of any conversion from
an integer convert it into rcp_iflag instruction. No FP exception
can ever happen except division by zero if a single precision rcp
argument is a representation of an integral number.


https://reviews.llvm.org/D48569

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Target/AMDGPU/AMDGPUInstrInfo.td
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIISelLowering.h
  lib/Target/AMDGPU/VOP1Instructions.td
  test/CodeGen/AMDGPU/rcp_iflag.ll
  test/CodeGen/AMDGPU/sdiv.ll
  test/CodeGen/AMDGPU/sdivrem24.ll
  test/CodeGen/AMDGPU/udiv.ll
  test/CodeGen/AMDGPU/udivrem24.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48569.152775.patch
Type: text/x-patch
Size: 11266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180625/de031f8e/attachment.bin>


More information about the llvm-commits mailing list