mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
blockfreq: Stop using range-based for to traverse Loops
A follow-up commit will need the actual iterators. <rdar://problem/14292693> llvm-svn: 207178
This commit is contained in:
parent
0b338fa955
commit
9ade70452a
@ -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