We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02cd899 commit a52b8f3Copy full SHA for a52b8f3
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1069,11 +1069,11 @@ class ExtractOpFromElementwise final
1069
// Elementwise op with single result and `extract` is single user.
1070
if (!eltwise || !OpTrait::hasElementwiseMappableTraits(eltwise) ||
1071
eltwise->getNumResults() != 1 || !eltwise->hasOneUse())
1072
- return failure();
+ return rewriter.notifyMatchFailure(op, "not a suitable op");
1073
1074
// Arguments types must match.
1075
if (!llvm::all_equal(eltwise->getOperandTypes()))
1076
+ return rewriter.notifyMatchFailure(op, "arg types are different");
1077
1078
Type dstType = op.getType();
1079
0 commit comments