when previous scratch register is killed, flag the value as no longer tracking

llvm-svn: 83653
This commit is contained in:
Jim Grosbach 2009-10-09 17:33:33 +00:00
parent 727170d2d8
commit 26070c5cff
1 changed files with 4 additions and 1 deletions

View File

@ -797,10 +797,13 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
if (Reg == PrevScratchReg) {
if (MO.isUse()) {
// Two-address operands implicitly kill
if (MO.isKill() || MI->isRegTiedToDefOperand(i))
if (MO.isKill() || MI->isRegTiedToDefOperand(i)) {
havePrevValue = false;
PrevScratchReg = 0;
}
} else {
assert (MO.isDef());
havePrevValue = false;
PrevScratchReg = 0;
}
}