This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Remove redundant methods from op interface
ClosedPublic

Authored by springerm on Oct 31 2021, 6:50 PM.

Details

Summary

These two methods are redundant and removed:

  • bufferizesToAliasOnly: If not bufferizesToMemoryRead and not bufferizesToMemoryWrite but getAliasingOpResult returns a non-null value, we know that this OpOperand is alias-only.
  • getInplaceableOpResult: The analysis does not differentiate between "inplaceable" and "aliasing". The only thing that matters is whether or not OpOperand and OpResult are aliasing. That is the key property that makes buffer copies necessary.

Depends On D112901

Diff Detail

Event Timeline

springerm created this revision.Oct 31 2021, 6:50 PM
springerm requested review of this revision.Oct 31 2021, 6:50 PM
springerm updated this revision to Diff 383933.Nov 1 2021, 5:47 PM

no change

nicolasvasilache accepted this revision.Nov 4 2021, 7:52 AM
This revision is now accepted and ready to land.Nov 4 2021, 7:52 AM
This revision was landed with ongoing or failed builds.Nov 4 2021, 5:44 PM
This revision was automatically updated to reflect the committed changes.