This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][NFC] Disallow writing into sparse_tensor.to_... results
ClosedPublic

Authored by springerm on Jan 27 2023, 8:12 AM.

Details

Summary

Writing into the memrefs returned by sparse_tensor.to_values etc. can cause additional copies during bufferization.

Diff Detail

Event Timeline

springerm created this revision.Jan 27 2023, 8:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 8:12 AM
springerm requested review of this revision.Jan 27 2023, 8:12 AM
aartbik added inline comments.Jan 27 2023, 8:41 AM
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
121–123

Here too?

springerm updated this revision to Diff 492776.Jan 27 2023, 8:43 AM

address comments

springerm marked an inline comment as done.Jan 27 2023, 8:43 AM
aartbik accepted this revision.Jan 27 2023, 8:45 AM
This revision is now accepted and ready to land.Jan 27 2023, 8:45 AM
This revision was landed with ongoing or failed builds.Jan 27 2023, 8:56 AM
This revision was automatically updated to reflect the committed changes.