This revision updates the op semantics to also allow rank-reducing behavior as well
as updates the implementation to reuse code between the sequential and the parallel
version of the op.
Depends on D128920
Paths
| Differential D128985
[mlir][Tensor] Update ParallelInsertSlicOp semantics to match that of InsertSliceOp ClosedPublic Authored by nicolasvasilache on Jul 1 2022, 5:23 AM.
Details Summary This revision updates the op semantics to also allow rank-reducing behavior as well Depends on D128920
Diff Detail
Event Timelinespringerm added inline comments.
This revision is now accepted and ready to land.Jul 1 2022, 5:32 AM This revision was landed with ongoing or failed builds.Jul 4 2022, 2:37 AM Closed by commit rGc9fb3c6ea6cc: [mlir][Tensor] Update ParallelInsertSlicOp semantics to match that of… (authored by nicolasvasilache). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 442039 mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Tensor/canonicalize.mlir
|
To be precise: "After buffer allocation, an extract_slice + parallel_insert_slice pair is expected to lower to a memref.subview op if all tensor OpOperands are in-place."
(The memref.subview lowers to the subview, the parallel_insert_slice lowers to a no-op.)