[PATCH] D74936: AMDGPU/GlobalISel: Legalize G_FPOW

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 16:05:16 PST 2020


arsenm created this revision.
arsenm added reviewers: foad, nhaehnle, kerbowa, b-sumner.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

There are few differences from the DAG handling. First, the DAG
handling uses a primitive selection pattern instead of custom
legalizing it. Because of this, this makes use of source modifiers
while the DAG does not.

      

Also instead of promoting f16, try to use the f16 log/exp. There's no
f16 fmul_legacy, so widen just for the multiply, although I'm not sure
that's the best solution.


https://reviews.llvm.org/D74936

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/fpow.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fpow.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74936.245761.patch
Type: text/x-patch
Size: 48299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200221/981f830f/attachment.bin>


More information about the llvm-commits mailing list