[llvm] [RISCV] Allow spilling to unused Zcmp Stack (PR #125959)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 16:22:44 PST 2025


================
@@ -1847,11 +1847,16 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
       MFI.setStackID(FrameIdx, TargetStackID::ScalableVector);
   }
 
-  // Allocate a fixed object that covers the full push or libcall size.
   if (RVFI->isPushable(MF)) {
-    if (int64_t PushSize = RVFI->getRVPushStackSize())
-      MFI.CreateFixedSpillStackObject(PushSize, -PushSize);
+    // Allocate a fixed object that covers all the registers that are pushed.
----------------
topperc wrote:

ok thanks.

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


More information about the llvm-commits mailing list