[PATCH] D118351: [AMDGPU][GlobalISel] Code quality: don't expand G_BUILD_VECTOR_TRUNC if not neccessary

Mateja Marjanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 4 04:38:51 PST 2022


matejam updated this revision to Diff 405924.
matejam retitled this revision from "[AMDGPU][GlobalISel] Code quality: remove unnecessary or, and, shift instructions" to "[AMDGPU][GlobalISel] Code quality: don't expand G_BUILD_VECTOR_TRUNC if not neccessary".
matejam edited the summary of this revision.
matejam added a comment.
Herald added a subscriber: wenlei.

Instead of using a combiner in the legalizer, change the implementation of apply mapping for G_BUILD_VECTOR_TRUNC in regbankselect.


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

https://reviews.llvm.org/D118351

Files:
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-mul.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-or-and-shl.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-or-and-shl.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.atomic.dim.a16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.a16.dim.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.1d.d16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.3d.a16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.sample.g16.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.g16.a16.dim.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118351.405924.patch
Type: text/x-patch
Size: 102441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/69ea4645/attachment-0001.bin>


More information about the llvm-commits mailing list