This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Add option to fold only tensor.empty with a single use
ClosedPublic

Authored by springerm on Jun 8 2023, 9:04 AM.

Details

Summary

This is useful for transformations such as bufferization, which is looking for tensor.extract_slice/insert_slice pairs.

Also fix the documentation of the corresponding tranform op.

Diff Detail

Event Timeline

springerm created this revision.Jun 8 2023, 9:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2023, 9:04 AM
springerm requested review of this revision.Jun 8 2023, 9:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2023, 9:04 AM
springerm updated this revision to Diff 529846.Jun 9 2023, 12:44 AM

add test case

nicolasvasilache accepted this revision.Jun 9 2023, 3:22 AM
This revision is now accepted and ready to land.Jun 9 2023, 3:22 AM