[Mlir-commits] [mlir] [mlir] Make remove-dead-values can delate useless function (PR #161471)

lonely eagle llvmlistbot at llvm.org
Wed Oct 1 02:03:05 PDT 2025


linuxlonelyeagle wrote:

> I don't think this fixes the bug in question, just removes the function that contained the bug. We also have a dead symbol elimination pass that handles such cases generically.

https://mlir.llvm.org/docs/Passes/ I didn't see the dead symbol elimination pass.
Beyond that, I believe such a fix is reasonable.In this bug, the key reason is that the dead code analysis pass determined the entire IR to be dead.This led to unexpected results in liveness analysis.The removal of dead values relies on liveness analysis, which is why this bug occurred.

Looking at this from another angle, the private function is actually rigid, so I introduced this.

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


More information about the Mlir-commits mailing list