================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to