summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-22 03:31:50 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-22 03:31:50 +0000
commitdda2f883dd61325ea85d4f9ebe5b8966b01e23dd (patch)
tree1aca88a2bc0dfabc86cb07833c4e28e4bcb958ae /include
parent40a483e980bb2ec89bd962d341f9a8fce3152c5b (diff)
downloadllvm-dda2f883dd61325ea85d4f9ebe5b8966b01e23dd.tar.gz
llvm-dda2f883dd61325ea85d4f9ebe5b8966b01e23dd.tar.bz2
llvm-dda2f883dd61325ea85d4f9ebe5b8966b01e23dd.tar.xz
blockfreq: Rename PackagedLoops => Loops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/BlockFrequencyInfoImpl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h
index 3faec52669..da39ba0e47 100644
--- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h
+++ b/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);
}