This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Rewrite PadTensorOp to enable its comprehensive bufferization.
ClosedPublic

Authored by nicolasvasilache on Jul 7 2021, 5:33 AM.

Details

Summary

Add the rewrite of PadTensorOp to InitTensor + InsertSlice before the
bufferization analysis starts.

This is exercised via a more advanced integration test.

Since the new behavior triggers folding, 2 tests need to be updated.
One of those seems to exhibit a folding issue with switch and is modified.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jul 7 2021, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2021, 5:33 AM
pifon2a accepted this revision.Jul 7 2021, 5:34 AM
pifon2a added inline comments.
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
2641

remove?

This revision is now accepted and ready to land.Jul 7 2021, 5:34 AM
nicolasvasilache marked an inline comment as done.Jul 7 2021, 5:39 AM
nicolasvasilache added inline comments.
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
2641

thanks!

nicolasvasilache marked an inline comment as done.

Drop spurious spew.

This revision was landed with ongoing or failed builds.Jul 7 2021, 5:41 AM
This revision was automatically updated to reflect the committed changes.