diff --git a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp index a19d579bcc5d..b59357385fdc 100644 --- a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp @@ -2989,15 +2989,6 @@ static Type getTensorTypeFromMemRefType(Type type) { return NoneType::get(type.getContext()); } -static Type getMemRefTypeFromTensorType(Type type) { - if (auto tensor = type.dyn_cast()) - return MemRefType::get(tensor.getShape(), tensor.getElementType()); - if (auto tensor = type.dyn_cast()) - return UnrankedMemRefType::get(tensor.getElementType(), - tensor.getMemorySpace()); - return NoneType::get(type.getContext()); -} - //===----------------------------------------------------------------------===// // TruncateIOp //===----------------------------------------------------------------------===//