[Mlir-commits] [mlir] [mlir][MemRef] Add subview folding pattern for vector.maskedload (PR #71380)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 6 03:42:58 PST 2023
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 3f5fd4b3c1d670649b59f3631287b6f54c6b85ee 1d418a292cb2da4f65c22a357470b3e76e45d2b0 -- mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp b/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
index e7ab120114e3..043e8fbcdd2f 100644
--- a/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
+++ b/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
@@ -419,7 +419,8 @@ LogicalResult LoadOpOfSubViewOpFolder<OpTy>::matchAndRewrite(
})
.Case([&](vector::MaskedLoadOp op) {
rewriter.replaceOpWithNewOp<vector::MaskedLoadOp>(
- op, op.getType(), subViewOp.getSource(), sourceIndices, op.getMask(), op.getPassThru());
+ op, op.getType(), subViewOp.getSource(), sourceIndices,
+ op.getMask(), op.getPassThru());
})
.Case([&](vector::TransferReadOp op) {
rewriter.replaceOpWithNewOp<vector::TransferReadOp>(
``````````
</details>
https://github.com/llvm/llvm-project/pull/71380
More information about the Mlir-commits
mailing list