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 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 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
if (MI->getOperand(i).isKill()) {
PrevScratchReg = CurrentScratchReg;
PrevLastUseMI = MI;
PrevLastUseOp = i;
CurrentScratchReg = CurrentVirtReg = 0;
}
}