[PATCH] D136319: [AMDGPU][GISel] Add trunc/shr combine

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 00:36:28 PDT 2022


Pierre-vh created this revision.
Pierre-vh added a reviewer: arsenm.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, 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.

We have a trunc/(shl, srl, sra) combine in the DAG.
The SHL is already handled by a generic combine, but there was no combine for right-shifts.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136319

Files:
  llvm/lib/Target/AMDGPU/AMDGPUCombine.td
  llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.cpp
  llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-trunc-right-shift.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136319.469126.patch
Type: text/x-patch
Size: 10546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221020/61d013f8/attachment.bin>


More information about the llvm-commits mailing list