CoTinker wrote: And please update the comments of `cleanSimpleOp` https://github.com/llvm/llvm-project/blob/59bc03cf8e9df134e591c989abb1c068e4201008/mlir/lib/Transforms/RemoveDeadValues.cpp#L174-L177 https://github.com/llvm/llvm-project/pull/117501