This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] tensor.cast may require a copy
ClosedPublic

Authored by springerm on Sep 30 2021, 2:45 AM.

Details

Summary

Analysis says that in-place bufferization is not possible, but this is currently ignored by the bufferization.

Diff Detail

Event Timeline

springerm created this revision.Sep 30 2021, 2:45 AM
springerm requested review of this revision.Sep 30 2021, 2:45 AM

Alternatively, we may want to treat tensor.cast in the same way as tensor.extract_slice.

This revision is now accepted and ready to land.Sep 30 2021, 12:59 PM
This revision was automatically updated to reflect the committed changes.