mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 18:31:36 +00:00
Skip dbg_value instructions when scanning instructions in register scavenging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c87b40b1cd
commit
1c8ab781d5
@ -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…
x
Reference in New Issue
Block a user