After D75831 has been landed, both the generic op and indexed_generic op can
handle 0-D edge case. In the previous patch, only generic op has been updated.
This patch updates the lowering to loops for indexed_generic op. Since they are
almost the sanme, the patch also refactors the common part.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Just one suggestion since you are touching these anyways
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
327–329 | This is unrelated to the change, but you can avoid doing these loads here if the corresponding argument of the region has no uses. Would be a bonus to do this here. |
Address comments.
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
90 | Yes, it is. Thanks! |
Isn't this returning a reference?