[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
Mon Jul 7 09:04:21 PDT 2025


================
@@ -644,7 +644,8 @@ bool AArch64RegisterInfo::hasBasePointer(const MachineFunction &MF) const {
     if (ST.hasSVE() || ST.isStreaming()) {
       // Frames that have variable sized objects and scalable SVE objects,
       // should always use a basepointer.
-      if (!AFI->hasCalculatedStackSizeSVE() || AFI->getStackSizeSVE())
+      if (!AFI->hasCalculatedStackSizeSVE() || AFI->getStackSizeZPR() ||
+          AFI->getStackSizePPR())
----------------
sdesmalen-arm wrote:

nit:
```suggestion
      if (!AFI->hasCalculatedStackSizeSVE() || AFI->hasSVEStackSize())
```

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


More information about the llvm-branch-commits mailing list