mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user