Skip to content

Commit 5103187

Browse files
committed
[mlir][vector] Use getShapeForUnroll's default implementation.
1 parent cd648da commit 5103187

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ def Vector_TransferWriteOp :
16531653
}
16541654

16551655
def Vector_LoadOp : Vector_Op<"load", [
1656-
DeclareOpInterfaceMethods<VectorUnrollOpInterface, ["getShapeForUnroll"]>,
1656+
DeclareOpInterfaceMethods<VectorUnrollOpInterface>,
16571657
DeclareOpInterfaceMethods<MemorySpaceCastConsumerOpInterface>,
16581658
DeclareOpInterfaceMethods<AlignmentAttrOpInterface>
16591659
]> {

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5762,10 +5762,6 @@ OpFoldResult LoadOp::fold(FoldAdaptor) {
57625762
return OpFoldResult();
57635763
}
57645764

5765-
std::optional<SmallVector<int64_t, 4>> LoadOp::getShapeForUnroll() {
5766-
return llvm::to_vector<4>(getVectorType().getShape());
5767-
}
5768-
57695765
FailureOr<std::optional<SmallVector<Value>>>
57705766
LoadOp::bubbleDownCasts(OpBuilder &builder) {
57715767
return mlir::detail::bubbleDownInPlaceMemorySpaceCastImpl(getBaseMutable(),

0 commit comments

Comments
 (0)