From da492d438790cc7c51f962071a887af7d20be30d Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Thu, 8 Aug 2024 16:31:11 +0100 Subject: [PATCH] [mlir][vector] Fix return of `DropUnitDimsFromTransposeOp` pattern (#102478) This accidentally returned `failure()` (rather than `success()`) when it applied. --- mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } };