mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +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:
parent
c024df648e
commit
391e1704c2
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user