diff options
author | Martin Liska <mliska@suse.cz> | 2020-09-24 13:34:58 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-09-29 09:26:07 +0200 |
commit | 37ffe56c01e4a9e80a3b3c4f5beb86d80a0663db (patch) | |
tree | f9bb78637f38787cc173b2ca9260573dbb1989bc /gcc/tree-switch-conversion.c | |
parent | 82693c4421d8a372e538ff1bd385f9ac4a34ce6f (diff) | |
download | gcc-37ffe56c01e4a9e80a3b3c4f5beb86d80a0663db.zip gcc-37ffe56c01e4a9e80a3b3c4f5beb86d80a0663db.tar.gz gcc-37ffe56c01e4a9e80a3b3c4f5beb86d80a0663db.tar.bz2 |
Revert "switch lowering: limit number of cluster attemps"
This reverts commit c6df6039e9180c580945266302ec14047d358364.
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r-- | gcc/tree-switch-conversion.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index e6a2c7a..186411f 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -1183,7 +1183,6 @@ jump_table_cluster::find_jump_tables (vec<cluster *> &clusters) min.quick_push (min_cluster_item (0, 0, 0)); - HOST_WIDE_INT attempts = 0; for (unsigned i = 1; i <= l; i++) { /* Set minimal # of clusters with i-th item to infinite. */ @@ -1195,14 +1194,6 @@ jump_table_cluster::find_jump_tables (vec<cluster *> &clusters) if (i - j < case_values_threshold ()) s += i - j; - if (attempts++ == param_max_switch_clustering_attempts) - { - if (dump_file) - fprintf (dump_file, ";; Bail out: " - "--param=max-switch-clustering-attempts reached\n"); - return clusters.copy (); - } - /* Prefer clusters with smaller number of numbers covered. */ if ((min[j].m_count + 1 < min[i].m_count || (min[j].m_count + 1 == min[i].m_count @@ -1317,7 +1308,6 @@ bit_test_cluster::find_bit_tests (vec<cluster *> &clusters) min.quick_push (min_cluster_item (0, 0, 0)); - HOST_WIDE_INT attempts = 0; for (unsigned i = 1; i <= l; i++) { /* Set minimal # of clusters with i-th item to infinite. */ @@ -1325,13 +1315,6 @@ bit_test_cluster::find_bit_tests (vec<cluster *> &clusters) for (unsigned j = 0; j < i; j++) { - if (attempts++ == param_max_switch_clustering_attempts) - { - if (dump_file) - fprintf (dump_file, ";; Bail out: " - "--param=max-switch-clustering-attempts reached\n"); - return clusters.copy (); - } if (min[j].m_count + 1 < min[i].m_count && can_be_handled (clusters, j, i - 1)) min[i] = min_cluster_item (min[j].m_count + 1, j, INT_MAX); |