[llvm] [AMDGPU] ISel & PEI for whole wave functions (PR #145858)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 02:14:16 PDT 2025


================
@@ -1662,6 +1714,21 @@ void SIFrameLowering::determineCalleeSaves(MachineFunction &MF,
   if (MFI->isEntryFunction())
     return;
 
+  if (MFI->isWholeWaveFunction()) {
+    // In practice, all the VGPRs are WWM registers, and we will need to save at
+    // least their inactive lanes. Add them to WWMReservedRegs.
----------------
cdevadas wrote:

Are we considering all VGPRs to be WWM regs in this calling convention?



https://github.com/llvm/llvm-project/pull/145858


More information about the llvm-commits mailing list