[PATCH] D74629: AMDGPU/GlobalISel: Improve 16-bit bswap

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 14 09:36:03 PST 2020


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

Match the new DAG behavior and use v_perm_b32 when available. Also
does better on SI/CI by expanding 16-bit swaps. Also fix
non-power-of-2 cases.


https://reviews.llvm.org/D74629

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/bswap.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bswap.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74629.244692.patch
Type: text/x-patch
Size: 41753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200214/eb31e464/attachment.bin>


More information about the llvm-commits mailing list