[MLIR][SCF] Enable better bufferization for `TileConsumerAndFuseProducersUsingSCFForOp`
authorlorenzo chelini <l.chelini@icloud.com>
Thu, 21 Jul 2022 07:58:53 +0000 (09:58 +0200)
committerlorenzo chelini <l.chelini@icloud.com>
Thu, 21 Jul 2022 08:14:26 +0000 (10:14 +0200)
commit2ed7c3fd841db1ae2a1ae2c3df865b04a890bb0d
tree01058321880e7afbb467ba55aa0fa6d49ffa77ce
parent2955192df8ac270515b5fa4aaa9e9380148e7f00
[MLIR][SCF] Enable better bufferization for `TileConsumerAndFuseProducersUsingSCFForOp`

Replace iterators of the outermost loop with region arguments of the innermost
one. The changes avoid later `bufferization` passes to insert allocation within
the body of the innermost loop.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D130083
mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
mlir/test/Interfaces/TilingInterface/tile-and-fuse-using-interface.mlir