File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments