[Mlir-commits] [mlir] [mlir][linalg] Enable fuse consumer (PR #89893)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Thu Apr 25 01:35:03 PDT 2024


ftynse wrote:

> What is being done here is what I was trying to avoid. To test the interface methods now there is an implementation of tile and fuse in a test folder. I don't see how this is useful.

I agree that this isn't exactly useful, because it introduces a lot of additional logic beyond what actually needs to be tested. Moreover, the newly added tests only test this behavior indirectly, and may end up rather hard to debug should the behavior regress.

There is a much simpler testing strategy: implement a test pass that calls the newly added interface methods on all operations that implement the interface and outputs the results of the call as diagnostic remarks (attributes can be printed, values can be identified by their locations). This is straightforward and fits into a couple dozen lines of code. We could also consider a unit test. It was rather obvious to me, and I probably should have elaborated on that...

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


More information about the Mlir-commits mailing list