[llvm] [RISCV] Allow spilling to unused Zcmp Stack (PR #125959)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 13:06:58 PDT 2025
topperc wrote:
This may be the fix
```
@@ -1798,7 +1800,7 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
if (MaxReg != RISCV::NoRegister) {
auto [RegEnc, PushedRegNum] = getPushPopEncodingAndNum(MaxReg);
RVFI->setRVPushRegs(PushedRegNum);
- RVFI->setRVPushStackSize(alignTo((STI.getXLen() / 8) * PushedRegNum, 16));
+ RVFI->setRVPushStackSize((STI.getXLen() / 8) * PushedRegNum);
// Use encoded number to represent registers to spill.
RVFI->setRVPushRlist(RegEnc);
```
https://github.com/llvm/llvm-project/pull/125959
More information about the llvm-commits
mailing list