diff options
author | Lang Hames <lhames@gmail.com> | 2012-02-19 04:38:25 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-02-19 04:38:25 +0000 |
commit | 038d2d5cede26b1ab63a732348b60ffc430dd7b0 (patch) | |
tree | bb41f5b61a657b79a24f66ac5f14b59146bbe72e /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 752b2f0d8815c65ed2ca3d8428e8060644562e24 (diff) |
Skip through instructions rather than operands when looking for last use slot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index e0a9a74d41..6c5dd0e611 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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) |