This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Bufferize after TensorCopyInsertion
ClosedPublic

Authored by springerm on Jun 13 2022, 8:23 AM.

Details

Summary

This change changes the bufferization so that it utilizes the new TensorCopyInsertion pass. One-Shot Bufferize no longer calls the One-Shot Analysis. Instead, it relies on the TensorCopyInsertion pass to make the entire IR fully inplacable. The bufferize implementations of all ops are simplified; they no longer have to account for out-of-place bufferization decisions. These were already materialized in the IR in the form of bufferization.alloc_tensor ops during the TensorCopyInsertion pass.

Depends On D127302

Diff Detail

Event Timeline

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

direct return

This revision is now accepted and ready to land.Jun 14 2022, 9:05 AM
springerm updated this revision to Diff 437847.Jun 17 2022, 4:23 AM

remove dead code

This revision was landed with ongoing or failed builds.Jun 17 2022, 4:31 AM
This revision was automatically updated to reflect the committed changes.