[Mlir-commits] [mlir] [mlir][vector] Prevent incorrect vector.transfer_{read|write} hoisting (PR #66930)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 29 01:40:33 PDT 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 8ffe73b6aae0bcae070e406da3117c24936a9da9 7dbf2de36879f199bef8c3cb026ed48d1f2d8339 -- mlir/include/mlir/Dialect/Linalg/Transforms/Hoisting.h mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp b/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
index f0caceb3e119..ff8bc4c6df7a 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
@@ -151,7 +151,6 @@ void mlir::linalg::hoistRedundantVectorTransfers(func::FuncOp func) {
transferRead.getPermutationMap() != transferWrite.getPermutationMap())
return WalkResult::advance();
-
auto *source = transferRead.getSource().getDefiningOp();
if (source && isa_and_nonnull<ViewLikeOpInterface>(source))
return WalkResult::advance();
``````````
</details>
https://github.com/llvm/llvm-project/pull/66930
More information about the Mlir-commits
mailing list