[llvm] [RISCV] Add stack clash vector support (PR #119458)
Raphael Moreira Zinsly via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 04:25:15 PST 2025
================
@@ -870,11 +918,15 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
}
if (RVVStackSize) {
- // We must keep the stack pointer aligned through any intermediate
- // updates.
- RI->adjustReg(MBB, MBBI, DL, SPReg, SPReg,
- StackOffset::getScalable(-RVVStackSize),
- MachineInstr::FrameSetup, getStackAlign());
+ if (NeedProbe)
+ allocateAndProbeStackForRVV(MF, MBB, MBBI, DL, RVVStackSize,
+ MachineInstr::FrameSetup, !hasFP(MF));
+ else
----------------
rzinsly wrote:
Done
https://github.com/llvm/llvm-project/pull/119458
More information about the llvm-commits
mailing list