Skip to content

Commit 8061805

Browse files
committed
fixup! [RISCV] Allow spilling to unused Zcmp Stack
1 parent 9466481 commit 8061805

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,8 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
18501850
if (RVFI->isPushable(MF)) {
18511851
// Allocate a fixed object that covers all the registers that are pushed.
18521852
if (unsigned PushedRegs = RVFI->getRVPushRegs()) {
1853-
int64_t PushedRegsBytes = static_cast<int64_t>(PushedRegs) * (STI.getXLen() / 8);
1853+
int64_t PushedRegsBytes =
1854+
static_cast<int64_t>(PushedRegs) * (STI.getXLen() / 8);
18541855
MFI.CreateFixedSpillStackObject(PushedRegsBytes, -PushedRegsBytes);
18551856
}
18561857
} else if (int LibCallRegs = getLibCallID(MF, CSI) + 1) {

0 commit comments

Comments
 (0)