[llvm] [SLP][NFC] Extract VectorizableTree into own ForestTree class (PR #222805)
Ryan Buchner via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 15:48:47 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 *> {
----------------
bababuck wrote:
Had to add this extra struct to get `GraphTraits` to work. Do you know what this code is used for?
https://github.com/llvm/llvm-project/pull/222805
More information about the llvm-commits
mailing list