[llvm] [RISCV] Add stack clash vector support (PR #119458)

Raphael Moreira Zinsly via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 07:34:40 PST 2024


================
@@ -914,6 +966,19 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
             .addImm(ShiftAmount)
             .setMIFlag(MachineInstr::FrameSetup);
       }
+      if (NeedProbe && RVVStackSize == 0) {
+        // Do a probe if the align + size allocated just passed the probe size
----------------
rzinsly wrote:

I added the f10 test in llvm/test/CodeGen/RISCV/stack-clash-prologue.ll to test this.

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


More information about the llvm-commits mailing list