[llvm] 76b54df - [StackSlotColoring] Use Register for isLoadFromStackSlot/isStoreToStackSlot result. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 12:06:22 PDT 2024
Author: Craig Topper
Date: 2024-09-15T12:05:28-07:00
New Revision: 76b54df87a860c20ac68e4ed1d766b545d412c1e
URL: https://github.com/llvm/llvm-project/commit/76b54df87a860c20ac68e4ed1d766b545d412c1e
DIFF: https://github.com/llvm/llvm-project/commit/76b54df87a860c20ac68e4ed1d766b545d412c1e.diff
LOG: [StackSlotColoring] Use Register for isLoadFromStackSlot/isStoreToStackSlot result. NFC
Added:
Modified:
llvm/lib/CodeGen/StackSlotColoring.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp
index df06577e14e77d..2b43e90581c471 100644
--- a/llvm/lib/CodeGen/StackSlotColoring.cpp
+++ b/llvm/lib/CodeGen/StackSlotColoring.cpp
@@ -472,8 +472,8 @@ bool StackSlotColoring::RemoveDeadStores(MachineBasicBlock* MBB) {
MachineBasicBlock::iterator NextMI = std::next(I);
MachineBasicBlock::iterator ProbableLoadMI = I;
- unsigned LoadReg = 0;
- unsigned StoreReg = 0;
+ Register LoadReg;
+ Register StoreReg;
unsigned LoadSize = 0;
unsigned StoreSize = 0;
if (!(LoadReg = TII->isLoadFromStackSlot(*I, FirstSS, LoadSize)))
More information about the llvm-commits
mailing list