mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
RegisterPressureTracker: fix findUseBetween to handle DebugValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -680,6 +680,8 @@ static bool findUseBetween(unsigned Reg,
|
||||
UI = MRI->use_nodbg_begin(Reg), UE = MRI->use_nodbg_end();
|
||||
UI != UE; UI.skipInstruction()) {
|
||||
const MachineInstr* MI = &*UI;
|
||||
if (MI->isDebugValue())
|
||||
continue;
|
||||
SlotIndex InstSlot = LIS->getInstructionIndex(MI).getRegSlot();
|
||||
if (InstSlot >= PriorUseIdx && InstSlot < NextUseIdx)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user