This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor][bufferize] Fix tensor.insert_slice regression
ClosedPublic

Authored by springerm on Nov 26 2022, 6:31 AM.

Details

Summary

This reverts D132662 (apart from overall cleanups), which introduced a too aggressive optimization for tensor.insert_slice bufferization. Instead, bufferizesToMemoryRead is improved to handle some of these cases. The remaining cases can still bufferize efficiently when running the canonicalizer before the bufferization.

Diff Detail

Event Timeline

springerm created this revision.Nov 26 2022, 6:31 AM
springerm requested review of this revision.Nov 26 2022, 6:31 AM
springerm updated this revision to Diff 478056.Nov 26 2022, 6:33 AM

update comment

jreiffers accepted this revision.Nov 26 2022, 6:57 AM

Thanks for the fix!

This revision is now accepted and ready to land.Nov 26 2022, 6:57 AM