[llvm-commits] [llvm] r115710 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Oct 5 16:10:12 PDT 2010
Author: stoklund
Date: Tue Oct 5 18:10:12 2010
New Revision: 115710
URL: http://llvm.org/viewvc/llvm-project?rev=115710&view=rev
Log:
Count uses in all nested loops, not just the deepest.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=115710&r1=115709&r2=115710&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Tue Oct 5 18:10:12 2010
@@ -68,7 +68,8 @@
MachineBasicBlock *MBB = MI->getParent();
if (usingBlocks_[MBB]++)
continue;
- if (MachineLoop *Loop = loops_.getLoopFor(MBB))
+ for (MachineLoop *Loop = loops_.getLoopFor(MBB); Loop;
+ Loop = Loop->getParentLoop())
usingLoops_[Loop]++;
}
DEBUG(dbgs() << " counted "
More information about the llvm-commits
mailing list