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

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 01:55:13 PDT 2019


dtemirbulatov marked 6 inline comments as done.
dtemirbulatov added inline comments.


================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:3584
+
+int BoUpSLP::getExtractCost() const {
+  int ExtractCost = 0;
----------------
vporpo wrote:
> Do we need separate getExtractCost() , getSpillCost() , getInsertCost() functions? Can't we update the getTreeCost() function instead to be aware of tree cutting?
Hmm, I think that we do a tree reduction with throttling in cutPath(), not in getTreeCost() and we need those functions outside.


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

https://reviews.llvm.org/D57779





More information about the llvm-commits mailing list