[Mlir-commits] [mlir] [mlir][linalg] Prevent hoisting of transfer pairs in the presence of aliases (PR #145235)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 25 02:25:49 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/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 ed14781da..1a5cb3220 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
@@ -314,8 +314,8 @@ void mlir::linalg::hoistRedundantVectorTransfers(Operation *root,
transferRead.getPermutationMap() != transferWrite.getPermutationMap())
return WalkResult::advance();
- // Check 2. Note, since both xfer Ops share the source, we only need to look at
- // one of them.
+ // Check 2. Note, since both xfer Ops share the source, we only need to
+ // look at one of them.
auto base = transferRead.getBase();
auto *source = base.getDefiningOp();
if (source) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/145235
More information about the Mlir-commits
mailing list