llvm.org GIT mirror llvm / 7a3eeae
Use ArrayRef to hide SmallVector details, kill a useless vector copy along the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260824 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 4 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
138138 void printBlockEquivalence(raw_ostream &OS, const BasicBlock *BB);
139139 bool computeBlockWeights(Function &F);
140140 void findEquivalenceClasses(Function &F);
141 void findEquivalencesFor(BasicBlock *BB1,
142 SmallVector> Descendants,
141 void findEquivalencesFor(BasicBlock *BB1, ArrayRef> Descendants,
143142 DominatorTreeBase *DomTree);
144143 void propagateWeights(Function &F);
145144 uint64_t visitEdge(Edge E, unsigned *NumUnknownEdges, Edge *UnknownEdge);
730729 /// with blocks from \p BB1's dominator tree, then
731730 /// this is the post-dominator tree, and vice versa.
732731 void SampleProfileLoader::findEquivalencesFor(
733 BasicBlock *BB1, SmallVector> Descendants,
732 BasicBlock *BB1, ArrayRef> Descendants,
734733 DominatorTreeBase *DomTree) {
735734 const BasicBlock *EC = EquivalenceClass[BB1];
736735 uint64_t Weight = BlockWeights[EC];