commit: d26e153ec5586afaa1ef59cf063d761156b953fc Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jan 6 10:03:12 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jan 6 10:03:12 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d26e153e
15.0.0: drop 78_all_PR118032-tree-switch-conversion-don-t-apply-switch-size-limit.patch Merged upstream. Signed-off-by: Sam James <sam <AT> gentoo.org> ...-conversion-don-t-apply-switch-size-limit.patch | 51 ---------------------- 15.0.0/gentoo/README.history | 1 - 2 files changed, 52 deletions(-) diff --git a/15.0.0/gentoo/78_all_PR118032-tree-switch-conversion-don-t-apply-switch-size-limit.patch b/15.0.0/gentoo/78_all_PR118032-tree-switch-conversion-don-t-apply-switch-size-limit.patch deleted file mode 100644 index 20018ef..0000000 --- a/15.0.0/gentoo/78_all_PR118032-tree-switch-conversion-don-t-apply-switch-size-limit.patch +++ /dev/null @@ -1,51 +0,0 @@ -https://inbox.sourceware.org/gcc-patches/[email protected]/ - -From 4e8dc9973c98a8b0c5cfe555221dc7dee5d92662 Mon Sep 17 00:00:00 2001 -Message-ID: <4e8dc9973c98a8b0c5cfe555221dc7dee5d92662.1736136715.git....@gentoo.org> -From: Mark Wielaard <[email protected]> -Date: Sun, 5 Jan 2025 18:25:39 +0100 -Subject: [PATCH] tree-switch-conversion: don't apply switch size limit on jump - tables - -commit 56946c801a7c ("gimple: Add limit after which slower switchlower -algs are used [PR117091] [PR117352]") introduced a limit on the number -of cases of a switch. It also bails out on finding jump tables if the -switch is too large. This introduces a compile time regression during -bootstrap. A riscv bootstrap takes hours longer. Particularly -insn-attrtab.cc will take hours instead of minutes. Fix this by not -applying the switch size limit on jump tables. - -An alternative would be to implement greedy switch clustering for jump -tables as is done for switch bitmap clustering. - -gcc/ChangeLog: - -PR tree-optimization/118032 - * tree-switch-conversion.cc (jump_table_cluster::find_jump_tables): - Remove param_switch_lower_slow_alg_max_cases check. ---- - gcc/tree-switch-conversion.cc | 4 ---- - 1 file changed, 4 deletions(-) - -diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc -index 432970597c97..39a8a893edde 100644 ---- a/gcc/tree-switch-conversion.cc -+++ b/gcc/tree-switch-conversion.cc -@@ -1643,10 +1643,6 @@ jump_table_cluster::find_jump_tables (vec<cluster *> &clusters) - - unsigned l = clusters.length (); - -- /* Note: l + 1 is the number of cases of the switch. */ -- if (l + 1 > (unsigned) param_switch_lower_slow_alg_max_cases) -- return clusters.copy (); -- - auto_vec<min_cluster_item> min; - min.reserve (l + 1); - - -base-commit: 451ff5b58f7c5958f8341160343680262944a63f -prerequisite-patch-id: cca034489e37f362f6ff4ff1aba0258270153a6a -prerequisite-patch-id: dcb0315887787c40fae21980c53d20d0b6e234b7 --- -2.47.1 - diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index edfaab4..666e4b2 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -1,7 +1,6 @@ 37 ???? - 78_all_PR118032-Revert-gimple-Add-limit-after-which-slower-switchlow.patch - + 78_all_PR118032-tree-switch-conversion-don-t-apply-switch-size-limit.patch + 81_all_PR118199-c-Clear-TARGET_EXPR_ELIDING_P-when-forced-to-use-a-c.patch 36 5 January 2025
