[Mlir-commits] [mlir] [mlir][SCF] Add `scf::tileAndFuseConsumer` that tiles a consumer into a given tiled loop nest. (PR #167634)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 17 21:51:32 PST 2025


MaheshRavishankar wrote:

> > The test for scf::tileAndFuseConsumerUsingSlices is copied to tile-and-fuse-consumer.mlir to
> > tile-and-fuse-consumer-using-slices.mlir. All the tests that were there in this file are now using the tileAndFuseConsumer method. The test op test.tile_and_fuse_consumer is modified to call scf::tileAndFuseConsumer, while a new op
> > test.tile_and_fuse_consumer_of_slice is used to keep the old path tested while it is deprecated.
> 
> I was curious about how the new op work with multiple consumers, but I don't see `fuse_add_multiple_tilable_consumers` in the `tile-and-fuse-consumer.mlir` file. Are we missing the test case?

I think the expected use is for multiple consumers, you call the fusion method multiple times. I think this test case https://github.com/llvm/llvm-project/pull/167634/files#diff-154c2d387b69e0e07cde6b61865996435b248f8abac476ee42de6c3cfb12d715R736 shows this.

https://github.com/llvm/llvm-project/pull/167634


More information about the Mlir-commits mailing list