[MLIR] Fix tilePerfectlyNested utility for handling non-unit step size
authorVivek <vivekkhandelwal1424@gmail.com>
Mon, 22 Feb 2021 19:18:04 +0000 (00:48 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Mon, 22 Feb 2021 19:20:04 +0000 (00:50 +0530)
commit817d343fb048b330b77a7b4ef0af0dba7450dfb2
treefd7208f31829f9975ad58c26a8a5ca902c817fdb
parent1b968467c057df980df214a88cddac74dccff15e
[MLIR] Fix tilePerfectlyNested utility for handling non-unit step size

The current implementation of tilePerfectlyNested utility doesn't handle
the non-unit step size. We have added support to perform tiling
correctly even if the step size of the loop to be tiled is non-unit.
Fixes https://bugs.llvm.org/show_bug.cgi?id=49188.

Differential Revision: https://reviews.llvm.org/D97037
mlir/lib/Transforms/Utils/LoopUtils.cpp
mlir/test/Dialect/Affine/loop-tiling.mlir