forked from OSchip/llvm-project
Skip dbg_value instructions when scanning instructions in register scavenging.
llvm-svn: 105481
This commit is contained in:
parent
538b413ccb
commit
50d229e6b3
|
@ -258,6 +258,10 @@ unsigned RegScavenger::findSurvivorReg(MachineBasicBlock::iterator StartMI,
|
|||
|
||||
bool inVirtLiveRange = false;
|
||||
for (++MI; InstrLimit > 0 && MI != ME; ++MI, --InstrLimit) {
|
||||
if (MI->isDebugValue()) {
|
||||
++InstrLimit; // Don't count debug instructions
|
||||
continue;
|
||||
}
|
||||
bool isVirtKillInsn = false;
|
||||
bool isVirtDefInsn = false;
|
||||
// Remove any candidates touched by instruction.
|
||||
|
|
Loading…
Reference in New Issue