forked from OSchip/llvm-project
Skip through instructions rather than operands when looking for last use slot.
llvm-svn: 150912
This commit is contained in:
parent
5adeb93d8a
commit
ed7f1f0b08
|
@ -1181,7 +1181,7 @@ private:
|
|||
for (MachineRegisterInfo::use_nodbg_iterator
|
||||
UI = MRI.use_nodbg_begin(Reg),
|
||||
UE = MRI.use_nodbg_end();
|
||||
UI != UE; ++UI) {
|
||||
UI != UE; UI.skipInstruction()) {
|
||||
const MachineInstr* MI = &*UI;
|
||||
SlotIndex InstSlot = LIS.getSlotIndexes()->getInstructionIndex(MI);
|
||||
if (InstSlot > LastUse && InstSlot < OldIdx)
|
||||
|
|
Loading…
Reference in New Issue