This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Improve handling of to_memref ops during analysis
AbandonedPublic

Authored by springerm on May 16 2022, 12:09 PM.

Details

Summary

to_memref is usually not allowed in the input IR when running One-Shot Bufferize.

  • Allow to_memref if there are no other bufferizable ops.
  • Better error message when to_memref is found.

Diff Detail

Event Timeline

springerm created this revision.May 16 2022, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 12:09 PM
springerm requested review of this revision.May 16 2022, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 12:09 PM
nicolasvasilache requested changes to this revision.Jun 24 2022, 8:50 AM

Can you document the reason for this special casing?
Wouldn't this be better as a helper function that a client could call explicitly to know that bufferization won't do anything for them and they can avoid calling it in the first place ?
I am very concerned of anything that gives the impression to_memref and his twin are ok to have in this pass.

This revision now requires changes to proceed.Jun 24 2022, 8:50 AM
springerm abandoned this revision.Jun 26 2022, 11:38 AM

This is a pretty old revision. We don't need this anymore.