[PATCH] D122286: [AMDGPU] VGPR need to be reserved for AGPR copy *only* on subtarget GFX908

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 22:12:16 PDT 2022


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

Indirect SGPR to AGPR copy, and AGPR to AGPR copy via an intermediate
VGPR copy is required *only* on subtarget GFX908. Hence no need to reserve
VGPR on other MI targets.

Add a missing testcase for SGPR to AGPR copy which would fail without a
reserved VGPR on GFX908.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122286

Files:
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
  llvm/test/CodeGen/AMDGPU/agpr-copy-no-free-registers.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122286.417497.patch
Type: text/x-patch
Size: 19692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220323/7386af4f/attachment.bin>


More information about the llvm-commits mailing list