[llvm-branch-commits] [mlir] [mlir][SCF] Fold unused `index_switch` results (PR #173560)

Mehdi Amini via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 28 07:42:45 PST 2025


joker-eph wrote:

> Part of it is the functionality of remove-dead-values, but I believe it ought to be implemented within remove-dead-values.

Whatever a canonicalizer can do without a dataflow analysis should be done: the fact that another more complex pass can do it isn't a reason to not canonicalize: it less heavyweight and more generally applicable.


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


More information about the llvm-branch-commits mailing list