- Fold extract_slice immediately after insert_slice.
- Fold overlapping insert_slice.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D111439
[mlir][tensor] Add some folders for insert/extract slice ops ClosedPublic Authored by antiagainst on Oct 8 2021, 9:36 AM.
Details Summary
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 11 2021, 10:41 AM Closed by commit rGbdd37c9f4944: [mlir][tensor] Add some folders for insert/extract slice ops (authored by antiagainst). · Explain WhyOct 12 2021, 5:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 378275 mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Linalg/hoisting.mlir
mlir/test/Dialect/Tensor/canonicalize.mlir
|
nit: We could also go up the insert chain if the slice are disjoint. Maybe we should have a TODO?