Skip to content

Commit

Permalink
[mlir][vector] Fix return of DropUnitDimsFromTransposeOp pattern (l…
Browse files Browse the repository at this point in the history
…lvm#102478)

This accidentally returned `failure()` (rather than `success()`) when it
applied.
  • Loading branch information
MacDue authored Aug 8, 2024
1 parent 7e5fe69 commit da492d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ struct DropUnitDimsFromTransposeOp final
rewriter.replaceOpWithNewOp<vector::ShapeCastOp>(
op, op.getResultVectorType(), tranposeWithoutUnitDims);

return failure();
return success();
}
};

Expand Down

0 comments on commit da492d4

Please sign in to comment.