Run a small analysis to see if the runtime type of the iter_arg is changing. Fold only if the runtime type stays the same. (Same as DimOfIterArgFolder in SCF.)
Depends On D108270
Paths
| Differential D109299
[mlir][linalg] Fix dim(iter_arg) canonicalization ClosedPublic Authored by springerm on Sep 5 2021, 6:27 PM.
Details Summary Run a small analysis to see if the runtime type of the iter_arg is changing. Fold only if the runtime type stays the same. (Same as DimOfIterArgFolder in SCF.) Depends On D108270
Diff Detail
Event TimelineHerald added subscribers: wrengr, Chia-hungDuan, dcaballe and 19 others. · View Herald TranscriptSep 5 2021, 6:27 PM springerm added a child revision: D109431: [mlir][linalg] Fold dim(linalg.tiled_loop) to dim(output_arg).Sep 8 2021, 4:08 AM This revision is now accepted and ready to land.Sep 8 2021, 4:19 AM This revision was landed with ongoing or failed builds.Sep 8 2021, 8:18 PM Closed by commit rGf7137da174a4: [mlir][linalg] Fix dim(iter_arg) canonicalization (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 371494 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|