[Mlir-commits] [mlir] [mlir][Transforms] Add dead code elimination pass (PR #106258)
Matthias Springer
llvmlistbot at llvm.org
Wed Aug 28 11:40:46 PDT 2024
matthias-springer 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)?
I have to take a closer look at that pass, but it does not support unstructured control flow and seems quite heavyweight. I just wanted to erase dead ops, and for that you don't need any analysis and/or worklist. Just a single walk over the IR. (Removing dead blocks requires a second walk.)
https://github.com/llvm/llvm-project/pull/106258
More information about the Mlir-commits
mailing list