[llvm-branch-commits] [llvm] [AArch64][SME] Support split ZPR and PPR area allocation (PR #142392)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 29 03:14:51 PDT 2025


================
@@ -2607,7 +2748,7 @@ bool AArch64FrameLowering::assignCalleeSavedSpillSlots(
     const TargetRegisterClass *RC = RegInfo->getMinimalPhysRegClass(Reg);
 
     // Create a hazard slot as we switch between GPR and FPR CSRs.
-    if (AFI->hasStackHazardSlotIndex() &&
+    if (AFI->hasStackHazardSlotIndex() && !AFI->hasSplitSVEObjects() &&
----------------
sdesmalen-arm wrote:

nit: can you create a `bool StackHazardIncludedInCalleeSaveArea = AFI->hasStackHazardSlotIndex() && !AFI->hasSplitSVEObjects()` (or possibly make this a utility function)

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


More information about the llvm-branch-commits mailing list