summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-19 04:38:25 +0000
committerLang Hames <lhames@gmail.com>2012-02-19 04:38:25 +0000
commited7f1f0b081e8f23ed4dbc5149e6e5e72ecc53c5 (patch)
treed83c4cbe100dcea3d00b851c065e27645e3d1c82
parent5adeb93d8a7de8da5533f79112b8ce740e5584b3 (diff)
downloadbcm5719-llvm-ed7f1f0b081e8f23ed4dbc5149e6e5e72ecc53c5.tar.gz
bcm5719-llvm-ed7f1f0b081e8f23ed4dbc5149e6e5e72ecc53c5.zip
Skip through instructions rather than operands when looking for last use slot.
llvm-svn: 150912
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index e0a9a74d411..6c5dd0e6119 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud