[Bug tree-optimization/126769] New: [17 Regression] 5% slowdown of dealII on Zen5 since r17-2979-g141edd02af7056

"jmelcr at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126769

            Bug ID: 126769
           Summary: [17 Regression] 5% slowdown of dealII on Zen5 since
                    r17-2979-g141edd02af7056
           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: jakub at gcc dot gnu.org
            Blocks: 26163
  Target Milestone: ---
              Host: x86_64-suse-linux
            Target: x86_64-suse-linux
             Build: x86_64-suse-linux

As seen here

https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=1283.140.0

there was a 5% exec time slowdown of the dealII SPEC 2006
benchmark when compiled with -Ofast -march=native -g -flto=128 with PGO on a
Zen5 machine. I bisected it to r17-2979-g141edd02af7056.

141edd02af705696f89ff9a804879dc51834898d is the first bad commit
commit 141edd02af705696f89ff9a804879dc51834898d
Author: Jakub Jelinek <[email protected]>
Date:   Wed Aug 5 12:15:24 2026 +0200

    fold-const, match.pd: Improve ptr_difference_const optimizations

This is a regression against GCC 16. See the comparison
here:

https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=1258.140.0&plot.1=1319.140.0&plot.2=1312.140.0&plot.3=1347.140.0&plot.4=1548.140.0&plot.5=1283.140.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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.