[llvm] [RISCV] Add stack clash vector support (PR #119458)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 10:00:40 PST 2024
================
@@ -914,6 +966,20 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
.addImm(ShiftAmount)
.setMIFlag(MachineInstr::FrameSetup);
}
+ if (NeedProbe) {
+ // Do a probe if the align + size allocated just passed the probe size
+ // and was not yet probed.
+ uint64_t AllocatedStack = SecondSPAdjustAmount + RVVStackSize;
----------------
topperc wrote:
RVVStackSize is relative to vscale. Does this addition make sense?
https://github.com/llvm/llvm-project/pull/119458
More information about the llvm-commits
mailing list