[PATCH] D57779: [SLP] Add support for throttling.

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 04:30:02 PDT 2020


dtemirbulatov marked an inline comment as done.
dtemirbulatov added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:5204
+  // Erase all saved trees after vectorization, except current.
+  for (auto It = BuiltTrees.begin(); It != BuiltTrees.end();)
+    if ((&*It)->get() != Tree)
----------------
hmm.  I would like to use remove_if here, but we have to capture a unique_ptr here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57779/new/

https://reviews.llvm.org/D57779





More information about the llvm-commits mailing list