https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128963
Bug ID: 128963
Summary: [17 Regression] 5-14% slowdown of imagick_r on various
targets since r17-6276-ga08d0e9eeaac6c
Product: gcc
Version: 17.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: hubicka at gcc dot gnu.org
Blocks: 26163
Target Milestone: ---
I am seeing several exec time slowdowns of SPEC 2017 imagick_r on various
targets:
Zen2 7% with -Ofast -march=native (=znver2) with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=293.507.0
Zen3 12% with -Ofast -march=native (=znver3) with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=473.507.0
Zen4 5% with -Ofast -march=native (=znver4) with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=966.507.0
Zen5 7% with -O2 -flto=128 with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=1244.507.0
Zen5 5% with -Ofast -march=native (=znver5) with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=1252.507.0
Neoverse N1 5% with -Ofast -march=native () with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=587.507.0
Intel Ice Lake (3rd gen Xeon) 7% with -Ofast -march=native (=icelake-server)
with PGO:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=797.507.0
I reproduced 2 of the slowdowns, they bisect to commit
r17-6276-ga08d0e9eeaac6c:
commit a08d0e9eeaac6c67c22490a016ed2ab42f042f70
Author: Jan Hubicka <[email protected]>
Date: Fri Nov 13 21:14:07 2026 +0100
Improve IPA propagation of readonly data
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)