[PATCH] D103326: [GlobalISel] Add combine for PTR_ADD with regbanks

Sebastian Neubauer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 09:19:42 PDT 2021


sebastian-ne created this revision.
sebastian-ne added reviewers: arsenm, foad, paquette, aemerson.
Herald added subscribers: kerbowa, hiraditya, rovka, nhaehnle, jvesely.
sebastian-ne requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Combine two G_PTR_ADDs, but keep the register bank of the constant.
That way, the combine can be used in post-regbank-select combines.

This is the first combine in CombinerHelper that uses register banks, I
hope it is the right place.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103326

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AMDGPU/AMDGPUCombine.td
  llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement-stack-lower.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.large.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103326.348551.patch
Type: text/x-patch
Size: 113373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210528/3f5e0386/attachment-0001.bin>


More information about the llvm-commits mailing list