[Mlir-commits] [mlir] [MLIR] Fix arbitrary checks in affine LICM (PR #116469)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Nov 15 20:21:59 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 70b9440c888b93217172f4eb425ff8b59b00ea24 a386ca89989861f7164b473f4048bb7286c0136c --extensions cpp -- mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp b/mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
index 050d594469..466271fe31 100644
--- a/mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
@@ -209,9 +209,7 @@ void LoopInvariantCodeMotion::runOnOperation() {
// Walk through all loops in a function in innermost-loop-first order. This
// way, we first LICM from the inner loop, and place the ops in
// the outer loop, which in turn can be further LICM'ed.
- getOperation().walk([&](AffineForOp op) {
- runOnAffineForOp(op);
- });
+ getOperation().walk([&](AffineForOp op) { runOnAffineForOp(op); });
}
std::unique_ptr<OperationPass<func::FuncOp>>
``````````
</details>
https://github.com/llvm/llvm-project/pull/116469
More information about the Mlir-commits
mailing list