Page MenuHomePhabricator

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

Authored by gysit on Thu, Nov 18, 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.Thu, Nov 18, 4:48 AM
gysit requested review of this revision.Thu, Nov 18, 4:48 AM
gysit updated this revision to Diff 388420.Fri, Nov 19, 1:37 AM

Rebase.

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

Rebase.

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