Pad the operation using a top down traversal. The top down traversal unlocks folding opportunities and dim op canonicalizations due to the introduced extract slice operation after the padded operation.
Depends On D114585
Paths
| Differential D114689
[mlir][linalg] Use top down traversal for padding. ClosedPublic Authored by gysit on Nov 28 2021, 11:28 PM.
Details Summary Pad the operation using a top down traversal. The top down traversal unlocks folding opportunities and dim op canonicalizations due to the introduced extract slice operation after the padded operation. Depends On D114585
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 21 others. · View Herald TranscriptNov 28 2021, 11:28 PM gysit added a child revision: D114690: [mlir][linalg] Support the empty anchor op string when padding..Nov 28 2021, 11:28 PM This revision is now accepted and ready to land.Nov 29 2021, 1:29 AM Closed by commit rG7f7103cd06b0: [mlir][linalg] Use top down traversal for padding. (authored by gysit). · Explain WhyNov 30 2021, 7:31 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 390719 mlir/lib/Dialect/Linalg/Transforms/LinalgStrategyPasses.cpp
mlir/test/Dialect/Linalg/pad.mlir
|
I have concerns about this: the top down / bottom up is supposed, I believe, to be only a crude heuristic and not something used to control the behavior like it is intended here.
The Greedy rewriter is still intended to be a greedy strategy and the comment here has me concerned.
Please revert, unless I misunderstood this change.