[Mlir-commits] [mlir] [mlir][x86vector] Sink Vector.transfer_reads and vector.load before the consumer (PR #169333)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 24 07:36:40 PST 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 origin/main HEAD --extensions h,cpp -- mlir/lib/Dialect/X86Vector/Transforms/SinkVectorProducerOps.cpp mlir/include/mlir/Dialect/X86Vector/Transforms.h mlir/lib/Dialect/X86Vector/TransformOps/X86VectorTransformOps.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/X86Vector/Transforms/SinkVectorProducerOps.cpp b/mlir/lib/Dialect/X86Vector/Transforms/SinkVectorProducerOps.cpp
index eb60e3e21..b31636958 100644
--- a/mlir/lib/Dialect/X86Vector/Transforms/SinkVectorProducerOps.cpp
+++ b/mlir/lib/Dialect/X86Vector/Transforms/SinkVectorProducerOps.cpp
@@ -64,7 +64,6 @@ struct SinkVectorProducerOps final : public OpRewritePattern<producerOp> {
if (llvm::is_contained(users, nextFirstUser))
return failure();
-
// Find the nearest user by scanning forward.
while (nextOp) {
if (llvm::is_contained(users, nextOp))
``````````
</details>
https://github.com/llvm/llvm-project/pull/169333
More information about the Mlir-commits
mailing list