[Mlir-commits] [mlir] add extra check on distribute types to avoid crashes (PR #102952)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Aug 12 12:04:52 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 b0329206db8e66fe180c504115103b27ca50f64e 3edb3003a35c066a9701eddf6e202a8440efa407 --extensions cpp -- mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
index 29899f44eb..6596f3fc0e 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
@@ -1689,7 +1689,7 @@ struct WarpOpScfForOp : public OpRewritePattern<WarpExecuteOnLane0Op> {
}
});
- if(llvm::any_of(distTypes, [](Type type){return !type;}))
+ if (llvm::any_of(distTypes, [](Type type) { return !type; }))
return failure();
SmallVector<size_t> newRetIndices;
``````````
</details>
https://github.com/llvm/llvm-project/pull/102952
More information about the Mlir-commits
mailing list