[llvm-commits] [llvm] r83481 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Jim Grosbach
grosbach at apple.com
Wed Oct 7 11:44:24 PDT 2009
Author: grosbach
Date: Wed Oct 7 13:44:24 2009
New Revision: 83481
URL: http://llvm.org/viewvc/llvm-project?rev=83481&view=rev
Log:
add initializers for clarity. Add missing assignment of PrevLastUseOp.
Modified:
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=83481&r1=83480&r2=83481&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Wed Oct 7 13:44:24 2009
@@ -782,8 +782,8 @@
unsigned CurrentScratchReg = 0;
unsigned PrevScratchReg = 0;
int PrevValue;
- MachineInstr *PrevLastUseMI;
- unsigned PrevLastUseOp;
+ MachineInstr *PrevLastUseMI = NULL;
+ unsigned PrevLastUseOp = 0;
// The instruction stream may change in the loop, so check BB->end()
// directly.
@@ -875,6 +875,7 @@
if (MI->getOperand(i).isKill()) {
PrevScratchReg = CurrentScratchReg;
PrevLastUseMI = MI;
+ PrevLastUseOp = i;
CurrentScratchReg = CurrentVirtReg = 0;
}
}
More information about the llvm-commits
mailing list