diff options
author | Filip Kastl <fkastl@suse.cz> | 2025-05-01 15:32:07 +0200 |
---|---|---|
committer | Filip Kastl <fkastl@suse.cz> | 2025-05-02 11:51:22 +0200 |
commit | c14560907a9586ad405f26ab937881eb08f39497 (patch) | |
tree | b1624a39c3d25df5946f06c7b9f2f812127bb4b2 /gcc | |
parent | 1381a5114788a2e9234ff54e0cd7a3c810f0d02d (diff) | |
download | gcc-c14560907a9586ad405f26ab937881eb08f39497.zip gcc-c14560907a9586ad405f26ab937881eb08f39497.tar.gz gcc-c14560907a9586ad405f26ab937881eb08f39497.tar.bz2 |
gimple: Don't warn about using different algs for big switch lowering [PR117091]
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-switch-conversion.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc index 4f0be8c..dea217a 100644 --- a/gcc/tree-switch-conversion.cc +++ b/gcc/tree-switch-conversion.cc @@ -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); |