https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124963
Bug ID: 124963
Summary: [16 Regression] 4-5% slowdown of xalancbmk_r on Zen4
with PGO since r16-8697-g4a3ad71a20b62c
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: jmelcr at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Blocks: 26163
Target Milestone: ---
Host: x86_64-suse-linux
Target: x86_64-suse-linux
As seen here
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=958.367.0
there was a 4-5% exec time slowdown of the xalancbmk_r SPEC 2017
benchmark when compiled with -Ofast -march=native -g -flto=128 with PGO on a
Zen4
machine. I bisected it to r16-8697-g4a3ad71a20b62c.
4a3ad71a20b62c79f8d82f902eeecc58eef21f3b is the first bad commit
commit 4a3ad71a20b62c79f8d82f902eeecc58eef21f3b
Author: Richard Biener <[email protected]>
Date: Tue Apr 14 13:16:01 2026 +0200
middle-end/124877 - fix mis-apply of PROMOTE_PROTOTYPES
This seems to be a regression against GCC 15 (not a ton of data for GCC 15 for
this benchmark), roughly on par with GCC13/14. See the comparison
here:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=952.367.0&plot.1=1006.367.0&plot.2=977.367.0&plot.3=1016.367.0&plot.4=1179.367.0&plot.5=958.367.0&
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2026, 2k17, 2k and 2k6 and
95)