This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Relax tensor.insert_slice conflict rules
ClosedPublic

Authored by springerm on Nov 8 2021, 5:56 PM.

Details

Summary

A tensor.insert_slice write does not conflict with a subsequent read of the source if the source is originating from a matching tensor.extract_slice.

Diff Detail

Event Timeline

springerm created this revision.Nov 8 2021, 5:56 PM
springerm requested review of this revision.Nov 8 2021, 5:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 5:56 PM
mravishankar accepted this revision.Nov 9 2021, 3:51 PM

LGTM.

mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp
924

Why not use areEquivalentExtractSliceOps?

This revision is now accepted and ready to land.Nov 9 2021, 3:51 PM
springerm marked an inline comment as done.Nov 10 2021, 1:23 AM
springerm added inline comments.
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp
924

areEquivalentExtractSliceOps is called internally by hasMatchingExtractSliceOp.

This revision was automatically updated to reflect the committed changes.
springerm marked an inline comment as done.