Replace the getSmallestBoundingIndex method used in padding by getConstantUpperBoundForIndex that uses flat affine constraints to compute a constant upper bound.
Depends On D113398
Paths
| Differential D113546
[linalg][mlir] Replace getSmallestBoundingIndex in padding (NFC). ClosedPublic Authored by gysit on Nov 10 2021, 12:11 AM.
Details Summary Replace the getSmallestBoundingIndex method used in padding by getConstantUpperBoundForIndex that uses flat affine constraints to compute a constant upper bound. Depends On D113398
Diff Detail
Event TimelineHerald added subscribers: Groverkss, wenzhicui, wrengr and 22 others. · View Herald TranscriptNov 10 2021, 12:11 AM gysit added a child revision: D113547: [mlir][linalg] Use getUpperBoundForIndex in hoisting (NFC)..Nov 10 2021, 12:12 AM gysit added a child revision: D113548: [linalg][mlir] Replace getSmallestBoundingIndex in promotion (NFC)..Nov 10 2021, 12:22 AM nicolasvasilache added inline comments.
This revision is now accepted and ready to land.Nov 10 2021, 4:36 AM Closed by commit rGea53a6938b12: [linalg][mlir] Replace getSmallestBoundingIndex in padding (NFC). (authored by gysit). · Explain WhyNov 10 2021, 7:16 AM This revision was automatically updated to reflect the committed changes. gysit marked an inline comment as done.
Revision Contents
Diff 386151 mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
|
I can imagine that in a world where simplifications are not done you may have multiple constants; return the smallest ?