[llvm] [SLP]Represent SLP graph as a tree (PR #126771)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 01:53:08 PST 2025


================
@@ -5951,6 +5985,67 @@ static void combineOrders(MutableArrayRef<unsigned> Order,
   }
 }
 
+bool BoUpSLP::isProfitableToReorder() const {
+  constexpr unsigned TinyVF = 2;
+  constexpr unsigned TinyTree = 10;
+  if (VectorizableTree.size() <= TinyTree)
----------------
lukel97 wrote:

How come this is different from `slp-min-tree-size`/`MinTreeSize`?

https://github.com/llvm/llvm-project/pull/126771


More information about the llvm-commits mailing list