[PATCH] D57779: [SLP] Add support for throttling.
Dinar Temirbulatov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 13:21:51 PST 2021
dtemirbulatov added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:672-676
+ /// Save current tree for possible later vectorization.
+ void saveTree() {
+ BuiltTrees.push_back(std::make_unique<TreeState>());
+ Tree = BuiltTrees.back().get();
}
----------------
ABataev wrote:
> Why do we need to save intermediate results? Cannot it be solved in a single iteration loop without saving the intermediate results in the class instance?
I have noticed many regressions if we decide right away and rebuilding the tree afterward is expensive.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57779/new/
https://reviews.llvm.org/D57779
More information about the llvm-commits
mailing list