mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00:00
blockfreq: Stop using range-based for to traverse Loops
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
This commit is contained in:
parent
6f1f9f4c7f
commit
1e3d420da5
@ -1471,8 +1471,8 @@ template <class BT> void BlockFrequencyInfoImpl<BT>::initializeLoops() {
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user