This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Improve memory leak detection
Needs ReviewPublic

Authored by springerm on Feb 13 2023, 9:18 AM.

Details

Summary

One-Shot Bufferize can currently not handle cases in which a buffer allocation is yielded from a block. This would cause a memory leak.

There is a check to detect such IR, but it is unnecessarily conservative. This change relaxes this restriction and lets us bufferize IR that we could not bufferize before.

Depends On: D143927

Diff Detail

Event Timeline

springerm created this revision.Feb 13 2023, 9:18 AM
springerm requested review of this revision.Feb 13 2023, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 9:18 AM

I am missing context for this change (sorry I am way behind on my reviews). Can you provide a few more details.