]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimple: Don't warn about using different algs for big switch lowering [PR117091]
authorFilip Kastl <fkastl@suse.cz>
Thu, 1 May 2025 13:32:07 +0000 (15:32 +0200)
committerFilip Kastl <fkastl@suse.cz>
Fri, 2 May 2025 09:51:22 +0000 (11:51 +0200)
We currently don't switch to a faster switch lowering algorithm when a
switch is too big.  This patch removes a warning about this.

PR middle-end/117091

gcc/ChangeLog:

* tree-switch-conversion.cc (switch_decision_tree::analyze_switch_statement):
Remove warning about using different algorithms.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
gcc/tree-switch-conversion.cc

index 4f0be8c43f070f807044fc138bbf75451a789db0..dea217a01efb2342a69c7d2e987fe5440d1ca963 100644 (file)
@@ -2257,13 +2257,6 @@ switch_decision_tree::analyze_switch_statement ()
 
   reset_out_edges_aux (m_switch);
 
-  if (l > (unsigned) param_switch_lower_slow_alg_max_cases)
-    warning_at (gimple_location (m_switch), OPT_Wdisabled_optimization,
-              "Using faster switch lowering algorithms. "
-              "Number of switch cases (%d) exceeds "
-              "%<--param=switch-lower-slow-alg-max-cases=%d%> limit.",
-              l, param_switch_lower_slow_alg_max_cases);
-
   /* Find bit-test clusters.  */
   vec<cluster *> output = bit_test_cluster::find_bit_tests (clusters, max_c);