[PATCH] D84910: [AMDGPU] Make GCNRegBankReassign assign based on subreg banks

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 21:54:40 PDT 2020


critson created this revision.
critson added reviewers: rampitec, foad, arsenm.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: LLVM.
critson requested review of this revision.
Herald added a subscriber: wdng.

When scavenging consider the sub-register of the source operand
to determine the bank of a candidate register (not just sub0).
Without this it is possible to introduce an infinite loop,
e.g. $sgpr15_sgpr16_sgpr17 can be assigned for a conflict between
$sgpr0 and SGPR_96:sub1.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84910

Files:
  llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.ll
  llvm/test/CodeGen/AMDGPU/regbank-reassign.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84910.281798.patch
Type: text/x-patch
Size: 16497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200730/d604618b/attachment.bin>


More information about the llvm-commits mailing list