[llvm] [SLP][NFC] Extract VectorizableTree into own ForestTree class (PR #222805)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 06:20:02 PDT 2026
================
@@ -5384,7 +5410,12 @@ template <> struct llvm::DenseMapInfo<BoUpSLP::EdgeInfo> {
}
};
-template <> struct llvm::GraphTraits<BoUpSLP *> {
+struct SLPGraphView {
+ BoUpSLP *R;
+ BoUpSLP::ForestTree *FT;
+};
+
+template <> struct llvm::GraphTraits<SLPGraphView *> {
----------------
alexey-bataev wrote:
The GraphTraits<BoUpSLP *> specialization backs opt -view-slp-tree (ViewSLPTree)
https://github.com/llvm/llvm-project/pull/222805
More information about the llvm-commits
mailing list