[llvm] [SLP][NFC] Extract VectorizableTree into own ForestTree class (PR #222805)
Ryan Buchner via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 11:52:31 PDT 2026
================
@@ -8215,28 +8354,28 @@ BoUpSLP::findExternalStoreUsersReorderIndices(TreeEntry *TE) const {
return ExternalReorderIndices;
}
-void BoUpSLP::buildTree(ArrayRef<Value *> Roots,
+void BoUpSLP::buildTree(ForestTree &FT, ArrayRef<Value *> Roots,
const SmallDenseSet<Value *> &UserIgnoreLst) {
deleteTree();
----------------
bababuck wrote:
I dropped the clear because the flow changed to creating `ForestTree` on the stack each time before calling `buildTree`. Would you prefer to stick with trying to keep the `ForestTree` alive for longer and clearing it each attempt?
https://github.com/llvm/llvm-project/pull/222805
More information about the llvm-commits
mailing list