This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Better implementation of AnalysisState::isTensorYielded
ClosedPublic

Authored by springerm on Jun 8 2022, 6:49 AM.

Details

Summary

If create-deallocs=0, mark all bufferization.alloc_tensor ops as escaping. (Unless they already have an escape attribute.) In the absence of analysis information, check SSA use-def chains to see if the value may be yielded.

Depends On D127301

Diff Detail

Event Timeline

springerm created this revision.Jun 8 2022, 6:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 6:49 AM
springerm requested review of this revision.Jun 8 2022, 6:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 6:49 AM
aartbik accepted this revision.Jun 14 2022, 8:57 AM
aartbik added inline comments.
mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
405

move out, or empty line

This revision is now accepted and ready to land.Jun 14 2022, 8:57 AM
This revision was landed with ongoing or failed builds.Jun 15 2022, 1:18 AM
This revision was automatically updated to reflect the committed changes.