[llvm-branch-commits] [llvm] [AArch64] Prepare for split ZPR and PPR area allocation (NFCI) (PR #142391)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 11 07:45:01 PDT 2025


================
@@ -4042,8 +4124,11 @@ void AArch64FrameLowering::determineCalleeSaves(MachineFunction &MF,
   });
 
   // If any callee-saved registers are used, the frame cannot be eliminated.
+  auto [ZPRLocalStackSize, PPRLocalStackSize] =
+      determineSVEStackSizes(MF, AssignObjectOffsets::No);
+  int64_t SVELocals = ZPRLocalStackSize + PPRLocalStackSize;
----------------
sdesmalen-arm wrote:

```suggestion
  uint64_t SVELocals = ZPRLocalStackSize + PPRLocalStackSize;
```

(same for `SVEStackSize` below)

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


More information about the llvm-branch-commits mailing list