[PATCH] D150570: [AMDGPU] Add implicit uses to AGPR copy MIR tests

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 06:47:58 PDT 2023


foad created this revision.
foad added a reviewer: AMDGPU.
Herald added subscribers: StephenFan, kerbowa, tpr, dstuttard, yaxunl, jvesely, kzhuravl, qcolombet.
Herald added a project: All.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Some tests were using liveins or IMPLICIT_DEFs to add fake live
registers, but that only works if you track liveness forwards. Add some
implicit uses too, so that it also works if you track liveness
backwards.

Some of these tests were using the regmask amdgpu_allvgprs but that is a
clobber not a use.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150570

Files:
  llvm/test/CodeGen/AMDGPU/agpr-copy-no-vgprs.mir
  llvm/test/CodeGen/AMDGPU/agpr-copy-sgpr-no-vgprs.mir
  llvm/test/CodeGen/AMDGPU/copy-vgpr-clobber-spill-vgpr.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150570.522168.patch
Type: text/x-patch
Size: 40119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230515/10196975/attachment.bin>


More information about the llvm-commits mailing list