AzizZayed wrote: What is the difference between the pass you propose and the existing `--remove-dead-values` pass [here](https://github.com/llvm/llvm-project/blob/main/mlir/lib/Transforms/RemoveDeadValues.cpp)? https://github.com/llvm/llvm-project/pull/106258