[PATCH] D72332: AMDGPU/GlobalISel: Custom legalize v2s16 G_SHUFFLE_VECTOR

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 06:28:05 PST 2020


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

Try to keep simple v2s16 cases as-is. This will more naturally map to
how the VOP3P op_sel modifiers work compared to the expansion
involving bitcasts and bitshifts.

      

This could maybe try harder with wider source vector types, although
that could be handled with a pre-legalize combine.


https://reviews.llvm.org/D72332

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shuffle-vector.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shuffle-vector.s16.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72332.236573.patch
Type: text/x-patch
Size: 54174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/fd3e830a/attachment.bin>


More information about the llvm-commits mailing list