diff --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td --- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td +++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td @@ -3733,7 +3733,7 @@ //===----------------------------------------------------------------------===// def TensorToMemrefOp : Std_Op<"tensor_to_memref", - [SameOperandsAndResultShape, SameOperandsAndResultElementType, + [NoSideEffect, SameOperandsAndResultShape, SameOperandsAndResultElementType, TypesMatchWith<"type of 'tensor' is the tensor equivalent of 'memref'", "memref", "tensor", "getTensorTypeFromMemRefType($_self)">]> {