Index: llvm/trunk/tools/llvm-exegesis/lib/Clustering.h =================================================================== --- llvm/trunk/tools/llvm-exegesis/lib/Clustering.h +++ llvm/trunk/tools/llvm-exegesis/lib/Clustering.h @@ -97,7 +97,7 @@ const std::vector &Points, double EpsilonSquared); llvm::Error validateAndSetup(); void dbScan(size_t MinPts); - std::vector rangeQuery(size_t Q) const; + llvm::SmallVector rangeQuery(size_t Q) const; const std::vector &Points_; const double EpsilonSquared_; Index: llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp =================================================================== --- llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp +++ llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp @@ -9,6 +9,7 @@ #include "Clustering.h" #include "llvm/ADT/SetVector.h" +#include "llvm/ADT/SmallVector.h" #include namespace llvm { @@ -32,9 +33,9 @@ // Finds the points at distance less than sqrt(EpsilonSquared) of Q (not // including Q). -std::vector +llvm::SmallVector InstructionBenchmarkClustering::rangeQuery(const size_t Q) const { - std::vector Neighbors; + llvm::SmallVector Neighbors; const auto &QMeasurements = Points_[Q].Measurements; for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) { if (P == Q)