Created attachment 902411 [details, diff] GCC 15 Zen5 tunings for GCC 14 (experimental backport) Following a series of briefs published on Phoronix with regards to AMD Zen 5 tunings coming with GCC15, I managed to backport the five referenced patchsets for GCC14 : * part 1 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d6360b4083695970789fd65b9c515c11a5ce25b4 * part 2 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d82edbe92eed53a479736fcbbe6d54d0fb42daa4 * part 3 => https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e2125a600552bc6e0329e3f1224eea14804db8d3 * part 4 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f0ab3de6ec0e3540f2e57f3f5628005f0a4e3fa5 * part 5 => https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4292297a0f938ffc953422fa246ff00fe345fe3d sys-devel/gcc-14.2.1_p20240817 has been successfully patched and recompiled. (Not sure for the real gains with my 9950X, will see). Of course this patch will void your warranty :)
I'm not really sure what the bug is for. Good on you for doing it, but I don't plan on backporting this downstream. Honza usually backports tuning stuff anyway.
The start of the idea is here => https://www.phoronix.com/news/GCC-15-Lands-More-Zen-5-Tuning I have ported it back for my own curiosity but wanted to share it in case of someone would find this useful for a reason or another.
I think it's premature in any case. Honza as I said does tend to pick these to the branches (in fact rather aggressively so). We can always ask him in a few weeks if it hasn't happened, but I'd rather them have some soaking time first.
In fact, Honza even says so at https://www.phoronix.com/forums/forum/software/programming-compilers/1489710-more-amd-zen-5-tuning-optimizations-merged-for-the-gcc-15-compiler?p=1489723#post1489723.
Honza's done the backports and they'll be in next week's round of snapshots.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cfe101db6bc15b980cacbe008075ccb69b54509 commit 4cfe101db6bc15b980cacbe008075ccb69b54509 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-04 02:40:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-04 02:40:14 +0000 sys-devel/gcc: add 12.4.1_p20241003 Bug: https://bugs.gentoo.org/939335 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.4.1_p20241003.ebuild | 65 +++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bab3141d1d3536ffce8d3376cef15073aff0ac1 commit 4bab3141d1d3536ffce8d3376cef15073aff0ac1 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-05 00:57:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-05 00:57:59 +0000 sys-devel/gcc: add 13.3.1_p20241004 Bug: https://bugs.gentoo.org/939335 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-13.3.1_p20241004.ebuild | 66 +++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a636d7f4a49b7216a3b21f7d083f22dbda84d3c2 commit a636d7f4a49b7216a3b21f7d083f22dbda84d3c2 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-06 00:27:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-06 00:27:30 +0000 sys-devel/gcc: add 14.2.1_p20241005 Bug: https://bugs.gentoo.org/939335 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-14.2.1_p20241005.ebuild | 54 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
Excellent, nice job. Thank you so much!