[PATCH] D134635: [AMDGPU][GlobalISel] Add Shift/Shufflevector Combine

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 03:55:44 PDT 2022


Pierre-vh created this revision.
Pierre-vh added a reviewer: arsenm.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: All.
Pierre-vh requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Folds G_LSHR + G_SHUFFLEVECTOR away when the shift amount
is 1/2 of the destination scalar size, and the mask starts with 1.

Depends on D134433 <https://reviews.llvm.org/D134433>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134635

Files:
  llvm/lib/Target/AMDGPU/AMDGPUCombine.td
  llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shift-shufflevector.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134635.462856.patch
Type: text/x-patch
Size: 11370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220926/b0e283b2/attachment.bin>


More information about the llvm-commits mailing list