[llvm-commits] [llvm] r150912 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Lang Hames
lhames at gmail.com
Sat Feb 18 20:38:25 PST 2012
Author: lhames
Date: Sat Feb 18 22:38:25 2012
New Revision: 150912
URL: http://llvm.org/viewvc/llvm-project?rev=150912&view=rev
Log:
Skip through instructions rather than operands when looking for last use slot.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=150912&r1=150911&r2=150912&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Sat Feb 18 22:38:25 2012
@@ -1181,7 +1181,7 @@
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)
More information about the llvm-commits
mailing list