[llvm] [llvm][RISCV] Set ScalableVector stack id in proper place (PR #117862)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 20:25:12 PST 2024


================
@@ -1623,6 +1623,8 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
     if ((unsigned)FrameIdx > MaxCSFrameIndex)
       MaxCSFrameIndex = FrameIdx;
     CS.setFrameIdx(FrameIdx);
+    if (RISCVRegisterInfo::isRVVRegClass(RC))
+      MFI.setStackID(FrameIdx, TargetStackID::ScalableVector);
----------------
arsenm wrote:

The spill size is still an unsigned, and not a TypeSize. How do scalable types still have fixed spill sizes? 

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


More information about the llvm-commits mailing list