[llvm] r206859 - blockfreq: Rename PackagedLoops => Loops
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Apr 21 20:31:50 PDT 2014
Author: dexonsmith
Date: Mon Apr 21 22:31:50 2014
New Revision: 206859
URL: http://llvm.org/viewvc/llvm-project?rev=206859&view=rev
Log:
blockfreq: Rename PackagedLoops => Loops
Modified:
llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp
Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h?rev=206859&r1=206858&r2=206859&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h Mon Apr 21 22:31:50 2014
@@ -1051,7 +1051,7 @@ public:
std::vector<WorkingData> Working;
/// \brief Indexed information about loops.
- std::vector<std::unique_ptr<LoopData>> PackagedLoops;
+ std::vector<std::unique_ptr<LoopData>> Loops;
/// \brief Add all edges out of a packaged loop to the distribution.
///
@@ -1079,7 +1079,7 @@ public:
/// \brief Distribute mass according to a distribution.
///
/// Distributes the mass in Source according to Dist. If LoopHead.isValid(),
- /// backedges and exits are stored in its entry in PackagedLoops.
+ /// backedges and exits are stored in its entry in Loops.
///
/// Mass is distributed in parallel from two copies of the source mass.
///
@@ -1438,8 +1438,8 @@ template <class BT> void BlockFrequencyI
BlockNode Header = getNode(Loop->getHeader());
assert(Header.isValid());
- PackagedLoops.emplace_back(new LoopData(Header));
- Working[Header.Index].Loop = PackagedLoops.back().get();
+ Loops.emplace_back(new LoopData(Header));
+ Working[Header.Index].Loop = Loops.back().get();
DEBUG(dbgs() << " - loop = " << getBlockName(Header) << "\n");
}
@@ -1470,7 +1470,7 @@ 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(PackagedLoops.rbegin(), PackagedLoops.rend()))
+ for (const auto &L : make_range(Loops.rbegin(), Loops.rend()))
computeMassInLoop(L->Header);
}
Modified: llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp?rev=206859&r1=206858&r2=206859&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp (original)
+++ llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp Mon Apr 21 22:31:50 2014
@@ -602,7 +602,7 @@ void BlockFrequencyInfoImplBase::clear()
// does not actually clear heap storage.
std::vector<FrequencyData>().swap(Freqs);
std::vector<WorkingData>().swap(Working);
- std::vector<std::unique_ptr<LoopData>>().swap(PackagedLoops);
+ std::vector<std::unique_ptr<LoopData>>().swap(Loops);
}
/// \brief Clear all memory not needed downstream.
More information about the llvm-commits
mailing list