[llvm] [AMDGPU] ISel & PEI for whole wave functions (PR #145858)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 01:32:14 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!
----------------
perlfu wrote:
Did you have a plan for making this more efficient?
https://github.com/llvm/llvm-project/pull/145858
More information about the llvm-commits
mailing list