This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize][NFC] Simplify InsertSliceOp bufferization
ClosedPublic

Authored by springerm on Jan 5 2022, 11:53 AM.

Details

Summary

No need to keep track of equivalent extract_slice / insert_slice tensors during bufferization. Just emit a copy, it will fold away.

Note: The analysis still keeps track of equivalent tensors to make the correct inplace bufferization decisions.

Diff Detail

Event Timeline

springerm created this revision.Jan 5 2022, 11:53 AM
springerm requested review of this revision.Jan 5 2022, 11:53 AM
nicolasvasilache accepted this revision.Jan 6 2022, 12:13 AM

Nice simplification!
Indeed self-copy folds away.

This revision is now accepted and ready to land.Jan 6 2022, 12:13 AM