[Mlir-commits] [mlir] [mlir][Tiling] Remove zero slice guard in Pad tiling (PR #175827)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jan 14 09:15:06 PST 2026


https://github.com/MaheshRavishankar requested changes to this pull request.

I think we cannot change the `TilingInterface` implementation of pad for this cause this "works" only if it is held properly. The conservative approach is to do this with the `scf.if`. 
There are a couple of options,
1) Thing I have done in the past is to use the control function to not pad using the normal tile and fuse worklist and tile and fuse the pad separately which calls the `tensor::bubbleUpPadSlice` while applying cleanup patterns.
2) I think MLIR has a way of overloading interfaces now. I havent used this, and downstream projects could use that approach to get this behavior.


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


More information about the Mlir-commits mailing list