[PATCH] D54390: [llvm-exegesis] InstructionBenchmarkClustering::rangeQuery(): write into llvm::SmallVectorImpl& output parameter
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 11 19:07:43 PST 2018
MaskRay added inline comments.
================
Comment at: tools/llvm-exegesis/lib/Clustering.cpp:105
void InstructionBenchmarkClustering::dbScan(const size_t MinPts) {
+ llvm::SmallVector<size_t, 0> Neighbors; // Persistent buffer to avoid allocs.
for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
----------------
It can be set to of size`NumPoints`
Repository:
rL LLVM
https://reviews.llvm.org/D54390
More information about the llvm-commits
mailing list