A follow-up commit will need the actual iterators.
<rdar://problem/
14292693>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207178
91177308-0d34-0410-b5e6-
96231b3b80d8
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>