Skip to content

Commit 33ec48c

Browse files
committed
[mlir][vector] Use getShapeForUnroll's default implementation.
1 parent c80f522 commit 33ec48c

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
@@ -1652,7 +1652,7 @@ def Vector_TransferWriteOp :
16521652
}
16531653

16541654
def Vector_LoadOp : Vector_Op<"load", [
1655-
DeclareOpInterfaceMethods<VectorUnrollOpInterface, ["getShapeForUnroll"]>,
1655+
DeclareOpInterfaceMethods<VectorUnrollOpInterface>,
16561656
DeclareOpInterfaceMethods<MemorySpaceCastConsumerOpInterface>
16571657
]> {
16581658
let summary = "reads an n-D slice of memory into an n-D vector";

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)