[Mlir-commits] [mlir] [mlir][Affine] Fix vector fusion legality and buffer sizing (PR #167229)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Nov 9 08:31:08 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Dialect/Affine/Analysis/Utils.h mlir/lib/Dialect/Affine/Analysis/Utils.cpp mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp mlir/lib/Dialect/Affine/Utils/LoopFusionUtils.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/Dialect/Affine/Analysis/Utils.h b/mlir/include/mlir/Dialect/Affine/Analysis/Utils.h
index 9ee85e4b1..daf797611 100644
--- a/mlir/include/mlir/Dialect/Affine/Analysis/Utils.h
+++ b/mlir/include/mlir/Dialect/Affine/Analysis/Utils.h
@@ -549,10 +549,10 @@ struct MemRefRegion {
   /// dimensions where each of these maps is purely symbolic in the constraints
   /// set's symbols. If `minShape` is provided, each computed bound is at least
   /// `minShape[d]` for dimension `d`.
-  std::optional<int64_t> getConstantBoundingSizeAndShape(
-      SmallVectorImpl<int64_t> *shape = nullptr,
-      SmallVectorImpl<AffineMap> *lbs = nullptr,
-      ArrayRef<int64_t> minShape = {}) const;
+  std::optional<int64_t>
+  getConstantBoundingSizeAndShape(SmallVectorImpl<int64_t> *shape = nullptr,
+                                  SmallVectorImpl<AffineMap> *lbs = nullptr,
+                                  ArrayRef<int64_t> minShape = {}) const;
 
   /// Gets the lower and upper bound map for the dimensional variable at
   /// `pos`.

``````````

</details>


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


More information about the Mlir-commits mailing list