[PATCH] D124192: [AMDGPU] Callee must always spill writelane VGPRs

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 22:26:41 PDT 2022


cdevadas added a comment.

@nhaehnle should also have to accept this patch. I won't be able to push it otherwise.



================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:1273
+  for (MachineBasicBlock &MBB : MF) {
+    for (auto &Reg : MFI->getWWMVGPRs())
+      MBB.addLiveIn(Reg.first);
----------------
arsenm wrote:
> cdevadas wrote:
> > arsenm wrote:
> > > Were WWM registers not reserved? I thought they were
> > Yes, they are. See `SIRegisterInfo::getReservedRegs`, I added some comments below. 
> I think we ought to either use the live in strategy or mark as reserved, but not both. Should clean this up in a later patch
Sure.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124192



More information about the llvm-commits mailing list