[llvm] [AMDGPU] ISel & PEI for whole wave functions (PR #145858)
    Diana Picus via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jul 14 07:20:00 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.
----------------
rovka wrote:
For the purposes of prolog epilog insertion, yes, since we need to preserve all the inactive lanes.
https://github.com/llvm/llvm-project/pull/145858
    
    
More information about the llvm-commits
mailing list