This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Deallocate returned buffers with `BufferDeallocation`
ClosedPublic

Authored by springerm on Mar 12 2022, 8:53 AM.

Details

Summary

New buffer allocations can now be returned/yielded from blocks with allow-return-allocs. One-Shot Bufferize deallocates all buffers at the end of the block. If this is not possible (because the buffer escapes the block), this is now done by the existing BufferDeallocation pass.

Depends On D121798

Diff Detail

Event Timeline

springerm created this revision.Mar 12 2022, 8:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2022, 8:53 AM
springerm requested review of this revision.Mar 12 2022, 8:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2022, 8:53 AM
nicolasvasilache accepted this revision.Mar 16 2022, 1:13 AM
This revision is now accepted and ready to land.Mar 16 2022, 1:13 AM
This revision was landed with ongoing or failed builds.Mar 16 2022, 7:13 AM
This revision was automatically updated to reflect the committed changes.