[llvm-branch-commits] [llvm] [SLP][modularisation][NFC] Add SLPTree.h; move ReductionVectorPart (PR #222545)

Alexey Bataev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 10 03:30:40 PDT 2026


================
@@ -0,0 +1,47 @@
+//===- SLPTree.h - SLP vectorization graph (BoUpSLP) ----------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Internal header for the SLP vectorization graph. The BoUpSLP class and its
+// nested types are added here in a follow-up change; this change seeds the
+// header with the small helpers BoUpSLP depends on.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIB_TRANSFORMS_VECTORIZE_SLPVECTORIZER_SLPTREE_H
+#define LLVM_LIB_TRANSFORMS_VECTORIZE_SLPVECTORIZER_SLPTREE_H
+
+#include "llvm/IR/ValueHandle.h"
+
+namespace llvm::slpvectorizer {
+
+/// If the ScheduleRegionSizeBudget is exhausted, we allow small scheduling
+/// regions to be handled.
+static const int MinScheduleRegionSize = 16;
----------------
alexey-bataev wrote:

```suggestion
static constexpr int MinScheduleRegionSize = 16;
```

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


More information about the llvm-branch-commits mailing list