[Mlir-commits] [mlir] [mlir][SCF] Fold unused `index_switch` results (PR #173560)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Dec 29 06:41:22 PST 2025
================
@@ -4797,9 +4797,59 @@ struct FoldConstantCase : OpRewritePattern<scf::IndexSwitchOp> {
}
};
+/// Canonicalization patterns that folds away dead results of
+/// "scf.index_switch" ops.
+struct FoldUnusedIndexSwitchResults : OpRewritePattern<IndexSwitchOp> {
+ using OpRewritePattern<IndexSwitchOp>::OpRewritePattern;
----------------
kuhar wrote:
nit: you can do `using Base::Base`
https://github.com/llvm/llvm-project/pull/173560
More information about the Mlir-commits
mailing list