CoTinker wrote: Thanks for your work, LGTM. if you have time, you can take a look at this issue https://github.com/llvm/llvm-project/issues/118450. It's crash due to `dropAlluses` before `erase`, result a `empty operands ` linalg op. https://github.com/llvm/llvm-project/pull/117501