This commit marks AllocLikeOp as MemAlloc in StandardOps.
Also in Linalg dependency analysis use memory effect to detect
allocation. This allows the dependency analysis to be more
general and recognize other allocation-like operations
Paths
| Differential D78705
[mlir][linalg] Use memory effect to detecting allocation ClosedPublic Authored by antiagainst on Apr 23 2020, 4:53 AM.
Details Summary This commit marks AllocLikeOp as MemAlloc in StandardOps. Also in Linalg dependency analysis use memory effect to detect
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 23 2020, 7:36 AM Comment Actions Thanks!
mehdi_amini added inline comments.
This revision now requires changes to proceed.Apr 23 2020, 10:44 PM antiagainst added inline comments.
Comment Actions
Actually we have two allocation-like ops in std. I think leveraging them should suffice for a test over the memory effect here. This revision is now accepted and ready to land.Apr 29 2020, 11:10 PM Closed by commit rG87e07b4c643f: [mlir] Use memory effect to detecting allocation (authored by antiagainst). · Explain WhyApr 30 2020, 6:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 260744 mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp
mlir/test/Dialect/Linalg/fusion.mlir
|
Can we add to AllocLikeOp instead? Ideally marking the returned value directly.