Skip to content

Commit 743571b

Browse files
committed
[RISCV] Remove unused argument. NFC
1 parent 5cf9435 commit 743571b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ getPushPopEncodingAndNum(const Register MaxReg) {
367367
}
368368

369369
// Get the max reg of Push/Pop for restoring callee saved registers.
370-
static Register getMaxPushPopReg(const MachineFunction &MF,
371-
const std::vector<CalleeSavedInfo> &CSI) {
370+
static Register getMaxPushPopReg(const std::vector<CalleeSavedInfo> &CSI) {
372371
MCRegister MaxPushPopReg;
373372
for (auto &CS : CSI) {
374373
if (llvm::find_if(FixedCSRFIMap, [&](auto P) {
@@ -1791,7 +1790,7 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
17911790

17921791
if (RVFI->isPushable(MF)) {
17931792
// Determine how many GPRs we need to push and save it to RVFI.
1794-
Register MaxReg = getMaxPushPopReg(MF, CSI);
1793+
Register MaxReg = getMaxPushPopReg(CSI);
17951794
if (MaxReg != RISCV::NoRegister) {
17961795
auto [RegEnc, PushedRegNum] = getPushPopEncodingAndNum(MaxReg);
17971796
RVFI->setRVPushRegs(PushedRegNum);

0 commit comments

Comments
 (0)