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) {
367
367
}
368
368
369
369
// 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) {
372
371
MCRegister MaxPushPopReg;
373
372
for (auto &CS : CSI) {
374
373
if (llvm::find_if (FixedCSRFIMap, [&](auto P) {
@@ -1791,7 +1790,7 @@ bool RISCVFrameLowering::assignCalleeSavedSpillSlots(
1791
1790
1792
1791
if (RVFI->isPushable (MF)) {
1793
1792
// Determine how many GPRs we need to push and save it to RVFI.
1794
- Register MaxReg = getMaxPushPopReg (MF, CSI);
1793
+ Register MaxReg = getMaxPushPopReg (CSI);
1795
1794
if (MaxReg != RISCV::NoRegister) {
1796
1795
auto [RegEnc, PushedRegNum] = getPushPopEncodingAndNum (MaxReg);
1797
1796
RVFI->setRVPushRegs (PushedRegNum);
You can’t perform that action at this time.
0 commit comments