This pattern is similar to FoldFillWithTensorReshape, which performs the same swapping with reshapes.
Fill the smaller extracted tensor slice instead of x. This allows for additional simplifications in case x is the result of another extract_slice.
Paths
| Differential D141117
[mlir][linalg] Swap extract_slice(fill(x)) ops ClosedPublic Authored by springerm on Jan 6 2023, 3:00 AM.
Details Summary This pattern is similar to FoldFillWithTensorReshape, which performs the same swapping with reshapes. Fill the smaller extracted tensor slice instead of x. This allows for additional simplifications in case x is the result of another extract_slice.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 6 2023, 3:26 AM Closed by commit rGbcfd32adc4b6: [mlir][linalg] Swap extract_slice(fill(x)) ops (authored by springerm). · Explain WhyJan 6 2023, 3:33 AM This revision was automatically updated to reflect the committed changes. pifon2a added a reverting change: D141597: Revert "[mlir][linalg] Swap extract_slice(fill(x)) ops".Jan 12 2023, 3:59 AM pifon2a added a reverting change: rGcd57994e95fd: Revert "[mlir][linalg] Swap extract_slice(fill(x)) ops".Jan 12 2023, 4:51 AM
Revision Contents
Diff 486799 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|