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

Sebastian Neubauer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 05:47:58 PDT 2021


sebastian-ne updated this revision to Diff 353348.
sebastian-ne added a comment.

I now added two helper function in CombinerHelper,
`getRegBankId` returns an `Optional<unsigned>` for a register and
`setRegBankId` sets such an optional bank to a register (or does nothing it it’s None).

With these, adding post-RBS support to a combine is a bit shorter.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103326

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  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.353348.patch
Type: text/x-patch
Size: 113129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/a85b34cc/attachment-0001.bin>


More information about the llvm-commits mailing list