diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-22 03:31:50 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-22 03:31:50 +0000 |
| commit | d1aec79d7ab57ca7c7387dc8b97f8a7b5f1d58c9 (patch) | |
| tree | b0e4ccfca21f0d22a3f43edc0d7e6e5c6f2355b3 /llvm | |
| parent | 2984a64bae912fe1c66dc7d2ead36fb9dde6771b (diff) | |
| download | bcm5719-llvm-d1aec79d7ab57ca7c7387dc8b97f8a7b5f1d58c9.tar.gz bcm5719-llvm-d1aec79d7ab57ca7c7387dc8b97f8a7b5f1d58c9.zip | |
blockfreq: Rename PackagedLoops => Loops
llvm-svn: 206859
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h | 10 | ||||
| -rw-r--r-- | llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h index 3faec526696..da39ba0e47f 100644 --- a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -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 BlockFrequencyInfoImpl<BT>::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 <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(PackagedLoops.rbegin(), PackagedLoops.rend())) + for (const auto &L : make_range(Loops.rbegin(), Loops.rend())) computeMassInLoop(L->Header); } diff --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp index f448b128566..b5532fcea1d 100644 --- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -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. |

