Closed zzzDavid closed 1 year ago
MoveReturnToInput assumed return op's result are allocated by memref.alloc op. This PR fixes this restriction by building memref.copy to support arbitrary value.
MoveReturnToInput
memref.alloc
memref.copy
Added test hcl-dialect/test/Transforms/interface/move_return_func_call.mlir
hcl-dialect/test/Transforms/interface/move_return_func_call.mlir
MoveReturnToInput
assumed return op's result are allocated bymemref.alloc
op. This PR fixes this restriction by buildingmemref.copy
to support arbitrary value.Added test
hcl-dialect/test/Transforms/interface/move_return_func_call.mlir