[mlir][scf] Fix a bug in scf::ForOp loop unroll with an epilogue
authorTatiana Shpeisman <shpeisman@google.com>
Sat, 10 Oct 2020 08:45:05 +0000 (14:15 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Sat, 10 Oct 2020 08:48:25 +0000 (14:18 +0530)
commit9909ef292daddccbd3b1154cec173014b847880a
tree8c7676278e1354924bd28324551048382012d438
parent5e855f1e8056ca0800134469ee82e0ff5ad5af59
[mlir][scf] Fix a bug in scf::ForOp loop unroll with an epilogue

Fixes a bug in formation and simplification of an epilogue loop generated
during loop unroll of scf::ForOp (https://bugs.llvm.org/show_bug.cgi?id=46689)

Differential Revision: https://reviews.llvm.org/D87583
mlir/lib/Transforms/Utils/LoopUtils.cpp
mlir/test/Transforms/scf-loop-unroll.mlir [new file with mode: 0644]