From: Duncan P. N. Exon Smith Date: Tue, 22 Apr 2014 03:31:50 +0000 (+0000) Subject: blockfreq: Rename PackagedLoops => Loops X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dda2f883dd61325ea85d4f9ebe5b8966b01e23dd;p=oota-llvm.git blockfreq: Rename PackagedLoops => Loops git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206859 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index 3faec526696..da39ba0e47f 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -1051,7 +1051,7 @@ public: std::vector Working; /// \brief Indexed information about loops. - std::vector> PackagedLoops; + std::vector> 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 void BlockFrequencyInfoImpl::initializeLoops() { 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 void BlockFrequencyInfoImpl::initializeLoops() { template void BlockFrequencyInfoImpl::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); } diff --git a/lib/Analysis/BlockFrequencyInfoImpl.cpp b/lib/Analysis/BlockFrequencyInfoImpl.cpp index f448b128566..b5532fcea1d 100644 --- a/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -602,7 +602,7 @@ void BlockFrequencyInfoImplBase::clear() { // does not actually clear heap storage. std::vector().swap(Freqs); std::vector().swap(Working); - std::vector>().swap(PackagedLoops); + std::vector>().swap(Loops); } /// \brief Clear all memory not needed downstream.