[PATCH] D105347: [AMDGPU][GlobalISel] Legalization of G_ROTL and G_ROTR

Mateja Marjanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 27 06:10:09 PDT 2021


matejam updated this revision to Diff 369083.
matejam added a comment.

In case the funnel shift instruction is not legal and the type is not a power of 2, use the old way of lowering (G_ROTL/G_ROTR -> G_SHL/G_LSHR).


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

https://reviews.llvm.org/D105347

Files:
  llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-rotl-rotr.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105347.369083.patch
Type: text/x-patch
Size: 25459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210827/7f3cb2c0/attachment.bin>


More information about the llvm-commits mailing list