From: Duncan P. N. Exon Smith Date: Fri, 25 Apr 2014 04:38:15 +0000 (+0000) Subject: blockfreq: LoopData::MemberList => NodeList X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e839ab26ba6b6b4dde5d7130792bbdcb8788d087;p=oota-llvm.git blockfreq: LoopData::MemberList => NodeList git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index c0e4ddfeb57..e6f08bb04e4 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -945,11 +945,11 @@ public: /// pseudo-node once it's packaged. struct LoopData { typedef SmallVector, 4> ExitMap; - typedef SmallVector MemberList; + typedef SmallVector NodeList; LoopData *Parent; ///< The parent loop. bool IsPackaged; ///< Whether this has been packaged. ExitMap Exits; ///< Successor edges (and weights). - MemberList Nodes; ///< Header and the members of the loop. + NodeList Nodes; ///< Header and the members of the loop. BlockMass BackedgeMass; ///< Mass returned to loop header. BlockMass Mass; Float Scale; @@ -959,11 +959,9 @@ public: bool isHeader(const BlockNode &Node) const { return Node == Nodes[0]; } BlockNode getHeader() const { return Nodes[0]; } - MemberList::const_iterator members_begin() const { - return Nodes.begin() + 1; - } - MemberList::const_iterator members_end() const { return Nodes.end(); } - iterator_range members() const { + NodeList::const_iterator members_begin() const { return Nodes.begin() + 1; } + NodeList::const_iterator members_end() const { return Nodes.end(); } + iterator_range members() const { return make_range(members_begin(), members_end()); } };