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

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 01:04:58 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.
+    assert(!NeedExecCopyReservedReg &&
+           "Whole wave functions can use the reg mapped for their i1 argument");
+
+    // FIXME: Be more efficient!
----------------
rovka wrote:

Not yet, just some vague ideas :( I keep getting pulled into other things, but I will get back to this after my summer vacation (fingers crossed).

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


More information about the llvm-commits mailing list