[PATCH] D81666: AMDGPU/GlobalISel: Fix lower for f64->f16 G_FPTRUNC

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 08:47:01 PDT 2020


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
arsenm accepted this revision.
This revision is now accepted and ready to land.

Put AND before ADD in LegalizerHelper::lowerFPTRUNC_F64_TO_F16 in order to match algorithm from AMDGPUTargetLowering::LowerFP_TO_FP16.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81666

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptrunc.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81666.270152.patch
Type: text/x-patch
Size: 19720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200611/e45f220f/attachment.bin>


More information about the llvm-commits mailing list