Skip through instructions rather than operands when looking for last use slot.

llvm-svn: 150912
This commit is contained in:
Lang Hames 2012-02-19 04:38:25 +00:00
parent 5adeb93d8a
commit ed7f1f0b08
1 changed files with 1 additions and 1 deletions

View File

@ -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)