[Mlir-commits] [mlir] Relax checks on vector.shape_cast (PR #136587)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 21 10:53:14 PDT 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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Vector/IR/VectorOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 2fcfab477..fec71935c 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -5511,8 +5511,10 @@ LogicalResult ShapeCastOp::verify() {
auto resultVectorType =
llvm::dyn_cast_or_null<VectorType>(getResult().getType());
- if (!sourceVectorType) return failure();
- if (!resultVectorType) return failure();
+ if (!sourceVectorType)
+ return failure();
+ if (!resultVectorType)
+ return failure();
// Check that element type is the same.
if (sourceVectorType.getElementType() != resultVectorType.getElementType())
``````````
</details>
https://github.com/llvm/llvm-project/pull/136587
More information about the Mlir-commits
mailing list