forked from OSchip/llvm-project
[mlir][sparse] Mark convert op as noSideEffect
Differential Revision: https://reviews.llvm.org/D109543
This commit is contained in:
parent
eede4846a9
commit
2a69790bad
|
@ -51,7 +51,8 @@ def SparseTensor_NewOp : SparseTensor_Op<"new", []>,
|
|||
let assemblyFormat = "$source attr-dict `:` type($source) `to` type($result)";
|
||||
}
|
||||
|
||||
def SparseTensor_ConvertOp : SparseTensor_Op<"convert", [SameOperandsAndResultType]>,
|
||||
def SparseTensor_ConvertOp : SparseTensor_Op<"convert",
|
||||
[NoSideEffect, SameOperandsAndResultType]>,
|
||||
Arguments<(ins AnyTensor:$source)>,
|
||||
Results<(outs AnyTensor:$dest)> {
|
||||
string summary = "Converts between different tensor types";
|
||||
|
|
Loading…
Reference in New Issue