[PATCH] D124192: [AMDGPU] Callee must always spill writelane VGPRs
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 13:06:06 PDT 2022
arsenm accepted this revision.
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:1273
+ for (MachineBasicBlock &MBB : MF) {
+ for (auto &Reg : MFI->getWWMVGPRs())
+ MBB.addLiveIn(Reg.first);
----------------
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
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