This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Improve `bufferizesToElementwiseAccess`
ClosedPublic

Authored by springerm on Aug 21 2023, 8:23 AM.

Details

Summary

The operands for which elementwise access is relevant can now be specified. All other operands are ignored. This is useful because only two particular operands participate in a RaW conflict. Furthermore, the two tensors no longer must be equivalent to rule out conflicts due to elementwise access. Equivalent tensor sets may be formed after an inplace bufferization decision is made. The two tensors are actually not required to be equivalent. The only important thing is that they have "equivalent" indexing into the same base buffer.

Diff Detail

Event Timeline

springerm created this revision.Aug 21 2023, 8:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 8:23 AM
springerm requested review of this revision.Aug 21 2023, 8:23 AM
chelini accepted this revision.Aug 21 2023, 11:33 PM

Looks good to me, thanks.

This revision is now accepted and ready to land.Aug 21 2023, 11:33 PM