This is an archive of the discontinued LLVM Phabricator instance.

[mlir] [linalg] Specify alignment during promotion.
ClosedPublic

Authored by poechsel on Apr 21 2020, 5:27 AM.

Details

Summary

The buffer allocated by a promotion can be subject to other transformations afterward. For example it could be vectorized, in which case it is needed to ensure that this buffer is memory-aligned.

Diff Detail

Event Timeline

poechsel created this revision.Apr 21 2020, 5:27 AM
ftynse added a subscriber: ftynse.Apr 21 2020, 6:26 AM

Please provide a longer commit description (https://mlir.llvm.org/getting_started/Contributing/#commit-messages)

mlir/test/Dialect/Linalg/transform-patterns.mlir
448

I wonder if we could have a significantly simpler test here that only looks at promotion rather than replicating matmul every time. There seems to be a lot of things that are tested elsewhere and will lead to additional churn when the transformation is modified.

Could you maybe try linalg.fill instead?

poechsel updated this revision to Diff 258982.Apr 21 2020, 6:46 AM

Simplified test.

poechsel edited the summary of this revision. (Show Details)Apr 21 2020, 6:48 AM
poechsel marked an inline comment as done.
ftynse accepted this revision.Apr 21 2020, 7:44 AM
This revision is now accepted and ready to land.Apr 21 2020, 7:44 AM
nicolasvasilache accepted this revision.Apr 21 2020, 9:01 AM

Thanks Pierre!

This revision was automatically updated to reflect the committed changes.