[Mlir-commits] [mlir] 0189094 - Fix missing return of LogicalResult from D142848
Mahesh Ravishankar
llvmlistbot at llvm.org
Tue Jan 31 18:07:14 PST 2023
Author: Mahesh Ravishankar
Date: 2023-02-01T02:07:03Z
New Revision: 01890942f0c0c05f7691b9e0d67ebfa5bd737af9
URL: https://github.com/llvm/llvm-project/commit/01890942f0c0c05f7691b9e0d67ebfa5bd737af9
DIFF: https://github.com/llvm/llvm-project/commit/01890942f0c0c05f7691b9e0d67ebfa5bd737af9.diff
LOG: Fix missing return of LogicalResult from D142848
Differential Revision: https://reviews.llvm.org/D143023
Added:
Modified:
mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
index 21c9eaee5213b..1593eaf264221 100644
--- a/mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
+++ b/mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
@@ -72,7 +72,7 @@ struct TestMultiUseProducerFusion : public OpRewritePattern<linalg::GenericOp> {
std::optional<linalg::ElementwiseOpFusionResult> fusionResult =
linalg::fuseElementwiseOps(rewriter, fusableOperand);
if (!fusionResult)
- rewriter.notifyMatchFailure(genericOp, "fusion failed");
+ return rewriter.notifyMatchFailure(genericOp, "fusion failed");
for (auto [origValue, replacement] : fusionResult->replacements) {
rewriter.replaceUseIf(origValue, replacement, [&](OpOperand &use) {
return use.getOwner() != genericOp.getOperation();
More information about the Mlir-commits
mailing list