add initializers for clarity. Add missing assignment of PrevLastUseOp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach
2009-10-07 18:44:24 +00:00
parent c024df648e
commit 391e1704c2

View File

@@ -782,8 +782,8 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
unsigned CurrentScratchReg = 0; unsigned CurrentScratchReg = 0;
unsigned PrevScratchReg = 0; unsigned PrevScratchReg = 0;
int PrevValue; int PrevValue;
MachineInstr *PrevLastUseMI; MachineInstr *PrevLastUseMI = NULL;
unsigned PrevLastUseOp; unsigned PrevLastUseOp = 0;
// The instruction stream may change in the loop, so check BB->end() // The instruction stream may change in the loop, so check BB->end()
// directly. // directly.
@@ -875,6 +875,7 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
if (MI->getOperand(i).isKill()) { if (MI->getOperand(i).isKill()) {
PrevScratchReg = CurrentScratchReg; PrevScratchReg = CurrentScratchReg;
PrevLastUseMI = MI; PrevLastUseMI = MI;
PrevLastUseOp = i;
CurrentScratchReg = CurrentVirtReg = 0; CurrentScratchReg = CurrentVirtReg = 0;
} }
} }