[PATCH] D54389: [llvm-exegesis] InstructionBenchmarkClustering::dbScan(): replace std::vector<> with std::deque<> in llvm::SetVector<>

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 19 05:31:33 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL347201: [llvm-exegesis] InstructionBenchmarkClustering::dbScan(): replace std::vector<>… (authored by lebedevri, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D54389?vs=173547&id=174596#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D54389

Files:
  llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp


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
@@ -121,7 +121,7 @@
     CurrentCluster.PointIndices.push_back(P);
 
     // Process P's neighbors.
-    llvm::SetVector<size_t> ToProcess;
+    llvm::SetVector<size_t, std::deque<size_t>> ToProcess;
     ToProcess.insert(Neighbors.begin(), Neighbors.end());
     while (!ToProcess.empty()) {
       // Retrieve a point from the set.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54389.174596.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181119/76c7a4f9/attachment.bin>


More information about the llvm-commits mailing list