This patch improves the reduction tiling for linalg to support multiple
reduction dimensions.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM; just a few nits. It would be nice to get @mravishankar to take a look!
mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp | ||
---|---|---|
263 | assert(llvm::all_of(reductionDims, ...)? | |
mlir/test/Dialect/Linalg/transform-tile-reduction.mlir | ||
383 | Can we also check scf.yield so that we can be clear about the positioning of these two linalg.generic ops? |
The PartialReductionTilingInterface needs a rewrite... but this is better than what was there before. Thanks!
mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp | ||
---|---|---|
263 | THis check is OK for now, but you can drop the restriction by just extending the sizes to contain 0's upto dim. Also please add { } around body that spans multiple lines. |
assert(llvm::all_of(reductionDims, ...)?