If we have a chain of tensor.insert_slice ops inserting some
tensor.pad op into a linalg.fill and ranges do not overlap,
we can also elide the tensor.pad later.
Depends on D120410
Paths
| Differential D120446
[mlir][linalg] Enhance FoldInsertPadIntoFill to support op chain ClosedPublic Authored by antiagainst on Feb 23 2022, 6:30 PM.
Details Summary If we have a chain of tensor.insert_slice ops inserting some Depends on D120410
Diff Detail
Event TimelineThomasRaoux added inline comments.
This revision is now accepted and ready to land.Feb 28 2022, 1:04 PM This revision was landed with ongoing or failed builds.Feb 28 2022, 1:54 PM Closed by commit rG96bc2233c49b: [mlir][linalg] Enhance FoldInsertPadIntoFill to support op chain (authored by antiagainst). · Explain Why This revision was automatically updated to reflect the committed changes. antiagainst marked an inline comment as done.
Revision Contents
Diff 411888 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|
You want a CHECK after CHECK-NOT otherwise it doesn't know where to stop. You can just check for return if nothing else.