This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Fix copy elision in `getResultBuffer`
ClosedPublic

Authored by springerm on Dec 31 2021, 7:43 AM.

Details

Summary

A buffer copy may not be elided if the to-be-bufferized op is reading the data.

Depends On D116453

Diff Detail

Event Timeline

springerm created this revision.Dec 31 2021, 7:43 AM
springerm requested review of this revision.Dec 31 2021, 7:43 AM

Based on our offline discussion, seems like this should be an assert ?

nicolasvasilache accepted this revision.Jan 7 2022, 5:06 AM
This revision is now accepted and ready to land.Jan 7 2022, 5:06 AM