diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp index 55c1c6bad9f2a4..bc0c96b32a80f5 100644 --- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp +++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp @@ -1782,7 +1782,7 @@ struct DropUnitDimsFromTransposeOp final rewriter.replaceOpWithNewOp( op, op.getResultVectorType(), tranposeWithoutUnitDims); - return failure(); + return success(); } };