[llvm] 04c5fed - [NFC] Fix wrong comment.
Thomas Symalla via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 5 04:39:30 PDT 2022
Author: Thomas Symalla
Date: 2022-07-05T13:37:44+02:00
New Revision: 04c5fed5e0c62cc02a654463552e6cd2967badf1
URL: https://github.com/llvm/llvm-project/commit/04c5fed5e0c62cc02a654463552e6cd2967badf1
DIFF: https://github.com/llvm/llvm-project/commit/04c5fed5e0c62cc02a654463552e6cd2967badf1.diff
LOG: [NFC] Fix wrong comment.
Added:
Modified:
llvm/lib/CodeGen/PrologEpilogInserter.cpp
llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 1a0f296d5fdce..89a43c4f57f6b 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -554,7 +554,7 @@ static void updateLiveness(MachineFunction &MF) {
}
}
-/// Insert restore code for the callee-saved registers used in the function.
+/// Insert spill code for the callee-saved registers used in the function.
static void insertCSRSaves(MachineBasicBlock &SaveBlock,
ArrayRef<CalleeSavedInfo> CSI) {
MachineFunction &MF = *SaveBlock.getParent();
diff --git a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
index dd881ec42d53b..786b6b61cb237 100644
--- a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
@@ -72,7 +72,7 @@ INITIALIZE_PASS_END(SILowerSGPRSpills, DEBUG_TYPE,
char &llvm::SILowerSGPRSpillsID = SILowerSGPRSpills::ID;
-/// Insert restore code for the callee-saved registers used in the function.
+/// Insert spill code for the callee-saved registers used in the function.
static void insertCSRSaves(MachineBasicBlock &SaveBlock,
ArrayRef<CalleeSavedInfo> CSI,
LiveIntervals *LIS) {
More information about the llvm-commits
mailing list