https://github.com/Moxinilian approved this pull request. I think some of those changes start to touch where cost models matter. It would be nice to revisit once the work on cost models in MLIR gets there! https://github.com/llvm/llvm-project/pull/89740