[PATCH] D147096: AMDGPU: Created a sub-register class for the return address operand in the tail call return instruction

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 04:08:47 PDT 2023


foad added a subscriber: sebastian-ne.
foad added a comment.

+ @sebastian-ne



================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.td:822
+// return address only.
+def CCR_SGPR_64 : SIRegisterClass<"AMDGPU", SGPR_64.RegTypes, 32, (add (trunc SGPR_64, 16))> {
+  let CopyCost = SGPR_64.CopyCost;
----------------
Doesn't this depend on the calling convention? CSR_AMDGPU_SGPRs and CSR_AMDGPU_SI_Gfx_SGPRs are different.


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

https://reviews.llvm.org/D147096



More information about the llvm-commits mailing list