This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Use getAsOpFoldResult in padding (NFC).
ClosedPublic

Authored by gysit on Nov 18 2021, 4:48 AM.

Details

Summary

After padding, we introduce a ExtractSliceOp to get the final unpadded result. This revision uses getAsOpFoldResult to compute the size of the unpadded result, which guarantees the result type has a partially static shape if some of the sizes of the unpadded result are statically known. At the moment, we rely on canonicalization to cleanup the types after padding.

Depends On D114085

Diff Detail

Event Timeline

gysit created this revision.Nov 18 2021, 4:48 AM
gysit requested review of this revision.Nov 18 2021, 4:48 AM
gysit updated this revision to Diff 388420.Nov 19 2021, 1:37 AM

Rebase.

nicolasvasilache accepted this revision.Nov 22 2021, 1:11 AM
This revision is now accepted and ready to land.Nov 22 2021, 1:11 AM
gysit updated this revision to Diff 388835.Nov 22 2021, 2:48 AM

Rebase.

This revision was landed with ongoing or failed builds.Nov 22 2021, 5:26 AM
This revision was automatically updated to reflect the committed changes.