forked from OSchip/llvm-project
when previous scratch register is killed, flag the value as no longer tracking
llvm-svn: 83653
This commit is contained in:
parent
727170d2d8
commit
26070c5cff
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue