Skip to content

Commit a52b8f3

Browse files
committed
notifyMatchFailure
1 parent 02cd899 commit a52b8f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,11 +1069,11 @@ class ExtractOpFromElementwise final
10691069
// Elementwise op with single result and `extract` is single user.
10701070
if (!eltwise || !OpTrait::hasElementwiseMappableTraits(eltwise) ||
10711071
eltwise->getNumResults() != 1 || !eltwise->hasOneUse())
1072-
return failure();
1072+
return rewriter.notifyMatchFailure(op, "not a suitable op");
10731073

10741074
// Arguments types must match.
10751075
if (!llvm::all_equal(eltwise->getOperandTypes()))
1076-
return failure();
1076+
return rewriter.notifyMatchFailure(op, "arg types are different");
10771077

10781078
Type dstType = op.getType();
10791079

0 commit comments

Comments
 (0)