Skip to content

Commit 42d598b

Browse files
committed
[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
storeRegToStackSlot contains a loop that stores multiple registers to multiple slots.
1 parent db9856b commit 42d598b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ bool RISCVFrameLowering::spillCalleeSavedRegisters(
17851785
const auto &UnmanagedCSI = getUnmanagedCSI(*MF, CSI);
17861786
const auto &RVVCSI = getRVVCalleeSavedInfo(*MF, CSI);
17871787

1788-
auto storeRegToStackSlot = [&](decltype(UnmanagedCSI) CSInfo) {
1788+
auto storeRegsToStackSlots = [&](decltype(UnmanagedCSI) CSInfo) {
17891789
for (auto &CS : CSInfo) {
17901790
// Insert the spill to the stack frame.
17911791
Register Reg = CS.getReg();
@@ -1794,8 +1794,8 @@ bool RISCVFrameLowering::spillCalleeSavedRegisters(
17941794
CS.getFrameIdx(), RC, TRI, Register());
17951795
}
17961796
};
1797-
storeRegToStackSlot(UnmanagedCSI);
1798-
storeRegToStackSlot(RVVCSI);
1797+
storeRegsToStackSlots(UnmanagedCSI);
1798+
storeRegsToStackSlots(RVVCSI);
17991799

18001800
return true;
18011801
}

0 commit comments

Comments
 (0)