[PATCH] D48126: AMDGPU: Add combine for short vector extract_vector_elts

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 07:31:55 PDT 2018


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

Try to access pieces 4 bytes at a time. This helps
various hasOneUse extract_vector_elt combines, such
as load width reductions.

      

Avoids test regressions in a future commit.


https://reviews.llvm.org/D48126

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/extract_vector_elt-f16.ll
  test/CodeGen/AMDGPU/extract_vector_elt-i16.ll
  test/CodeGen/AMDGPU/extract_vector_elt-i8.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48126.151161.patch
Type: text/x-patch
Size: 9186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180613/c60d219d/attachment.bin>


More information about the llvm-commits mailing list