[Mlir-commits] [mlir] [mlir][Linalg] NFC: Expose a method to deduplicate operands/remove dead results of `linalg.generic` op. (PR #125141)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jan 30 16:26:34 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 aa34a6ab299027ac31929173287e42db0dbdb06b 72f822d83f32d06175cd9817fd60a3250f1c0b6d --extensions cpp,h -- mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp b/mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
index 8b05f21bb0..d375878fb2 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
@@ -299,9 +299,8 @@ struct DeduplicateAndRemoveDeadOperandsAndResults
LogicalResult matchAndRewrite(GenericOp genericOp,
PatternRewriter &rewriter) const override {
- FailureOr<GenericOp> newOp =
- deduplicateOperandsAndRemoveDeadResults(rewriter, genericOp,
- removeOutputs);
+ FailureOr<GenericOp> newOp = deduplicateOperandsAndRemoveDeadResults(
+ rewriter, genericOp, removeOutputs);
if (failed(newOp) || newOp.value() == genericOp) {
return rewriter.notifyMatchFailure(
genericOp, "failed to dedup operands/remove dead results");
``````````
</details>
https://github.com/llvm/llvm-project/pull/125141
More information about the Mlir-commits
mailing list