Adapt tileConsumerAndFuseProducers to return failure if the generated tile loop nest is empty since all tile sizes are zero. Additionally, fix LinalgTileAndFuseTensorOpsPattern to return success if the pattern applied successfully.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This is a follow up to https://reviews.llvm.org/D118576. I am happy to keep the early exit if all tile sizes are zero just removed it to demonstrate that tileConsumerAndFuseProducers now returns failure if all tile sizes are zero (instead of an invalid tile loop nest).
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp | ||
---|---|---|
595 | Change looks fine. But would rather keep this to provide better diagnostics with -debug. |
Change looks fine. But would rather keep this to provide better diagnostics with -debug.