[Mlir-commits] [mlir] 57c8935 - mlir/linalg: improve debugging in LinalgTransformOps
Ramkumar Ramachandra
llvmlistbot at llvm.org
Sat Dec 3 00:55:43 PST 2022
Author: Ramkumar Ramachandra
Date: 2022-12-03T09:55:03+01:00
New Revision: 57c893599d6b7897285bab7a007fe86fb0f3e312
URL: https://github.com/llvm/llvm-project/commit/57c893599d6b7897285bab7a007fe86fb0f3e312
DIFF: https://github.com/llvm/llvm-project/commit/57c893599d6b7897285bab7a007fe86fb0f3e312.diff
LOG: mlir/linalg: improve debugging in LinalgTransformOps
Make use of notifyMatchFailure in one place.
Signed-off-by: Ramkumar Ramachandra <r at artagnon.com>
Differential Revision: https://reviews.llvm.org/D139191
Added:
Modified:
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
index 4bfa5b4a2e8a1..98734baed1adb 100644
--- a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+++ b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
@@ -1804,7 +1804,7 @@ struct VectorizationPattern : public RewritePattern {
PatternRewriter &rewriter) const override {
LinalgOp linalgOp = dyn_cast<LinalgOp>(op);
if (!linalgOp)
- return failure();
+ return rewriter.notifyMatchFailure(op, "expected Linalg Op");
return vectorize(rewriter, linalgOp);
}
};
More information about the Mlir-commits
mailing list