[Mlir-commits] [mlir] [nlir][vector] Constrain `ContractionOpToMatmulOpLowering` (PR #102225)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Aug 6 14:14:58 PDT 2024
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 ec1981f4ed86a6f954a5ea0bbfaba1c6cd19d807 29e124e3b98611c0c9535a70c9c6a7fc87776016 --extensions cpp -- mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp b/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
index 97c3af781a..b8ebbd8382 100644
--- a/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
@@ -1303,7 +1303,7 @@ FailureOr<Value> ContractionOpToMatmulOpLowering::matchAndRewriteMaskableOp(
!isParallelIterator(iteratorTypes[1]) ||
!isReductionIterator(iteratorTypes[2]))
return failure();
-
+
Type opResType = op.getType();
VectorType vecType = dyn_cast<VectorType>(opResType);
if (vecType && vecType.isScalable()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/102225
More information about the Mlir-commits
mailing list