This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Tensor] Add support for insert_slice in FoldTensorSubsetOps
ClosedPublic

Authored by nicolasvasilache on Apr 14 2023, 6:13 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache requested review of this revision.Apr 14 2023, 6:13 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache planned changes to this revision.Apr 14 2023, 6:13 AM
nicolasvasilache added a reviewer: ftynse.
ftynse accepted this revision.Apr 14 2023, 6:20 AM

LGTM if a test is added.

mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
253–254

Nit: commented-out-code.

mlir/lib/Dialect/Tensor/Transforms/FoldTensorSubsetOps.cpp
177–192

Nit: can this be wrapped into a block that with InsertionGuard RAII instead?

Finish the impl and add tests.

This revision is now accepted and ready to land.Apr 14 2023, 9:17 AM

Add comment and format.

This revision was landed with ongoing or failed builds.Apr 14 2023, 9:34 AM
This revision was automatically updated to reflect the committed changes.