[PATCH] D117875: [AMDGPU][InstCombine] Use D16 if only f16 precision is needed

Sebastian Neubauer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 21 04:34:28 PST 2022


sebastian-ne created this revision.
sebastian-ne added reviewers: arsenm, foad.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
sebastian-ne requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

If an image load feeds into truncates to 16-bit, use a d16 load.
In the same way, if a stored value has only 16-bit precission, enable
d16.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117875

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.h
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117875.401945.patch
Type: text/x-patch
Size: 11839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220121/f34f062a/attachment.bin>


More information about the llvm-commits mailing list