Skip to content

Commit 4d8a286

Browse files
committed
Remove getShapeForUnroll for step
1 parent f267341 commit 4d8a286

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
@@ -3018,7 +3018,7 @@ def Vector_ScanOp :
30183018

30193019
def Vector_StepOp : Vector_Op<"step", [
30203020
Pure,
3021-
DeclareOpInterfaceMethods<VectorUnrollOpInterface, ["getShapeForUnroll"]>,
3021+
DeclareOpInterfaceMethods<VectorUnrollOpInterface>,
30223022
DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRanges"]>
30233023
]> {
30243024
let summary = "A linear sequence of values from 0 to N";

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7442,10 +7442,6 @@ void StepOp::inferResultRanges(ArrayRef<ConstantIntRanges> argRanges,
74427442
setResultRanges(getResult(), result);
74437443
}
74447444

7445-
std::optional<SmallVector<int64_t, 4>> StepOp::getShapeForUnroll() {
7446-
return llvm::to_vector<4>(llvm::cast<VectorType>(getType()).getShape());
7447-
}
7448-
74497445
//===----------------------------------------------------------------------===//
74507446
// Vector Masking Utilities
74517447
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)