This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] New tiling option: Scalarize dynamic dims
ClosedPublic

Authored by springerm on Sep 4 2021, 1:33 AM.

Details

Summary

This tiling option scalarizes all dynamic dimensions, i.e., it tiles all dynamic dimensions by 1.

This option is useful for linalg ops with partly dynamic tensor dimensions. E.g., such ops can appear in the partial iteration after loop peeling. After scalarizing dynamic dims, those ops can be vectorized.

Depends On D109043

Diff Detail

Event Timeline

springerm created this revision.Sep 4 2021, 1:33 AM
springerm requested review of this revision.Sep 4 2021, 1:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2021, 1:33 AM

I'll let this one simmer until you had a chance to decide whether you update scf.for peeling to be consistent with linalg.tiled_loop peeling.
Ping me if you want me to review.

This revision is now accepted and ready to land.Sep 13 2021, 12:49 PM
This revision was landed with ongoing or failed builds.Sep 13 2021, 6:43 PM
This revision was automatically updated to reflect the committed changes.