[llvm] r207178 - blockfreq: Stop using range-based for to traverse Loops
Duncan P. N. Exon Smith
dexonsmith at apple.com
Thu Apr 24 21:37:58 PDT 2014
Author: dexonsmith
Date: Thu Apr 24 23:37:58 2014
New Revision: 207178
URL: http://llvm.org/viewvc/llvm-project?rev=207178&view=rev
Log:
blockfreq: Stop using range-based for to traverse Loops
A follow-up commit will need the actual iterators.
<rdar://problem/14292693>
Modified:
llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h?rev=207178&r1=207177&r2=207178&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h Thu Apr 24 23:37:58 2014
@@ -1471,8 +1471,8 @@ template <class BT> void BlockFrequencyI
template <class BT> void BlockFrequencyInfoImpl<BT>::computeMassInLoops() {
// Visit loops with the deepest first, and the top-level loops last.
- for (const auto &L : make_range(Loops.rbegin(), Loops.rend()))
- computeMassInLoop(L.Header);
+ for (auto L = Loops.rbegin(), E = Loops.rend(); L != E; ++L)
+ computeMassInLoop(L->Header);
}
template <class BT>
More information about the llvm-commits
mailing list