[mlir][Affine] Revisit fusion candidates after successful fusion
authorDiego Caballero <diego.caballero@intel.com>
Thu, 11 Jun 2020 21:39:44 +0000 (14:39 -0700)
committerDiego Caballero <diego.caballero@intel.com>
Thu, 11 Jun 2020 21:53:08 +0000 (14:53 -0700)
commit2e7a0845913e5ed1673467fa5648b79842de2104
tree2fac2bdde1ed9417352a1dcea000747b1dde5a9f
parent1c03389c29f32cce81a642365c484c71aba1a1cb
[mlir][Affine] Revisit fusion candidates after successful fusion

This patch changes the fusion algorithm so that after fusing two loop nests
we revisit previously visited nodes so that they are considered again for
fusion in the context of the new fused loop nest.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D81609
mlir/lib/Transforms/LoopFusion.cpp
mlir/test/Transforms/loop-fusion.mlir