For singleton transfer reads, we allow hoisting them out
of the enclosing loop if there are no other accesses to
the source memref within the loop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp | ||
---|---|---|
127 | I think the logic you want is slightly different, you want to check that there are no other use of the memref by ops with side effects (read side-effects are okay). |
Comment Actions
Updates based on Thomas' comments
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp | ||
---|---|---|
127 | Sounds good. I have updated the patch. |
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp | ||
---|---|---|
55 | nit: I would rename it to noAliasingUseInLoop |
nit: I would rename it to noAliasingUseInLoop