[Mlir-commits] [mlir] [mlir][Vector] Support vector.insert in bubbling bitcast patterns (PR #82843)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 23 15:25:41 PST 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 25940956e68ec82d841e5748565e7250580e1d36 f9779adacfd6a9007de7bf95f9bf832a6c7642e1 -- mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
index 278f02bb49..ad295928cb 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -763,8 +763,7 @@ struct BubbleUpBitCastForInsert : public OpRewritePattern<vector::BitCastOp> {
return failure();
// Bitcast the source.
- SmallVector<int64_t> srcDims =
- llvm::to_vector<4>(insertSrcType.getShape());
+ SmallVector<int64_t> srcDims = llvm::to_vector<4>(insertSrcType.getShape());
srcDims.back() = isShrink ? srcDims.back() / ratio : srcDims.back() * ratio;
VectorType newCastSrcType =
VectorType::get(srcDims, castDstType.getElementType());
``````````
</details>
https://github.com/llvm/llvm-project/pull/82843
More information about the Mlir-commits
mailing list