Skip to content

Commit da492d4

Browse files
authored
[mlir][vector] Fix return of DropUnitDimsFromTransposeOp pattern (#102478)
This accidentally returned `failure()` (rather than `success()`) when it applied.
1 parent 7e5fe69 commit da492d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ struct DropUnitDimsFromTransposeOp final
17821782
rewriter.replaceOpWithNewOp<vector::ShapeCastOp>(
17831783
op, op.getResultVectorType(), tranposeWithoutUnitDims);
17841784

1785-
return failure();
1785+
return success();
17861786
}
17871787
};
17881788

0 commit comments

Comments
 (0)