================
@@ -784,8 +785,8 @@ AArch64RegisterInfo::useFPForScavengingIndex(const 
MachineFunction &MF) const {
   assert((!MF.getSubtarget<AArch64Subtarget>().hasSVE() ||
           AFI->hasCalculatedStackSizeSVE()) &&
          "Expected SVE area to be calculated by this point");
-  return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->getStackSizeSVE() 
&&
-         !AFI->hasStackHazardSlotIndex();
+  return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->getStackSizeZPR() 
&&
+         !AFI->getStackSizePPR() && !AFI->hasStackHazardSlotIndex();
----------------
sdesmalen-arm wrote:

nit:
```suggestion
  return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->hasSVEStackSize() &&
         !AFI->hasStackHazardSlotIndex();
```

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