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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2009-10-09 17:33:33 +00:00
parent e8e72be33a
commit 71c8dc9b20

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;
}
}