public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718
@ 2022-03-02 16:20 jamborm at gcc dot gnu.org
  2022-03-02 17:02 ` [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r " jamborm at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2022-03-02 16:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

            Bug ID: 104762
           Summary: x86_64 538.imagick_r 8%-28% regressions after
                    r12-7319-g90d693bdc9d718
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
            Blocks: 26163
  Target Milestone: ---
              Host: x86_64-linux
            Target: x86_64-linux

Around 22nd of February 2022, SPEC 2017 538.imagick_r regressed on all
x86_64 systems used by our periodic benchmarker.  I have bisected the
zen3 -Ofast -march=native -flto case to revision
r12-7319-g90d693bdc9d718 but I think most if not all of the
regressions are caused by this:

commit 90d693bdc9d71841f51d68826ffa5bd685d7f0bc
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Feb 18 14:32:14 2022 +0100

    target/99881 - x86 vector cost of CTOR from integer regs

    This uses the now passed SLP node to the vectorizer costing hook
    to adjust vector construction costs for the cost of moving an
    integer component from a GPR to a vector register when that's
    required for building a vector from components.  A cruical difference
    here is whether the component is loaded from memory or extracted
    from a vector register as in those cases no intermediate GPR is involved.

    The pr99881.c testcase can be Un-XFAILed with this patch, the
    pr91446.c testcase now produces scalar code which looks superior
    to me so I've adjusted it as well.


List of (selected) regressions with links to LNT graphs:

zen2 -O2 regressed by 26%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=297.507.0

zen2 -O2 -flto regressed by 26% too:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=296.507.0

zen2 -Ofast -march=native by 28%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=295.507.0

zen2 -Ofast -march=native -flto by 23:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=287.507.0


zen3 -O2 by 8%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=470.507.0

zen3 -O2 -march=native by 18%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=472.507.0

zen3 -Ofast -march=native by 17%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=471.507.0

zen3 -Ofast -march=native -flto by 10%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=475.507.0


kabylake -O2 by 9%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=226.507.0
(though this one looks suspiciously noisy)

kabylake -O2 -march=native by 16%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=28.507.0

kabylake -Ofast -march=native by 22%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=32.507.0

kabylake -Ofast -march=native -flto by 15%:
https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=11.507.0


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
@ 2022-03-02 17:02 ` jamborm at gcc dot gnu.org
  2022-03-02 21:59 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2022-03-02 17:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|x86_64 538.imagick_r 8%-28% |x86_64 538.imagick_r 8%-28%
                   |regressions after           |regressions and 10%
                   |r12-7319-g90d693bdc9d718    |525.x264_r regressions
                   |                            |after
                   |                            |r12-7319-g90d693bdc9d718

--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> ---
The same revision also regressed SPEC 2017 INTrate benchmark x264_r by
about 10% at -Ofast -march=native with and without LTO on zen3:

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

and I suspect (unlike the above, I have not actually verified it) also
on zen2:

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
  2022-03-02 17:02 ` [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r " jamborm at gcc dot gnu.org
@ 2022-03-02 21:59 ` pinskia at gcc dot gnu.org
  2022-03-03  1:20 ` crazylht at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-02 21:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
  2022-03-02 17:02 ` [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r " jamborm at gcc dot gnu.org
  2022-03-02 21:59 ` pinskia at gcc dot gnu.org
@ 2022-03-03  1:20 ` crazylht at gmail dot com
  2022-03-07  7:20 ` [Bug target/104762] [12 Regression] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: crazylht at gmail dot com @ 2022-03-03  1:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

Hongtao.liu <crazylht at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crazylht at gmail dot com

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
For 525, it's PR101929, for 538, it's STF issue.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] [12 Regression] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-03-03  1:20 ` crazylht at gmail dot com
@ 2022-03-07  7:20 ` rguenth at gcc dot gnu.org
  2022-03-11 14:03 ` cvs-commit at gcc dot gnu.org
  2022-03-11 14:04 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-07  7:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-03-07
            Summary|x86_64 538.imagick_r 8%-28% |[12 Regression] x86_64
                   |regressions and 10%         |538.imagick_r 8%-28%
                   |525.x264_r regressions      |regressions and 10%
                   |after                       |525.x264_r regressions
                   |r12-7319-g90d693bdc9d718    |after
                   |                            |r12-7319-g90d693bdc9d718

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
See PR101929 comment#7 for two possible things we can do at this stage that
might "fix" the regression.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] [12 Regression] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-03-07  7:20 ` [Bug target/104762] [12 Regression] " rguenth at gcc dot gnu.org
@ 2022-03-11 14:03 ` cvs-commit at gcc dot gnu.org
  2022-03-11 14:04 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-11 14:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:69619acd8d9b5856f5af6e5323d9c7c4ec9ad08f

commit r12-7612-g69619acd8d9b5856f5af6e5323d9c7c4ec9ad08f
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Mar 11 11:51:13 2022 +0100

    target/104762 - vectorization costs of CONSTRUCTORs

    After accounting for GPR -> XMM move cost for vec_construct the
    base cost needs adjustments to not double-cost those.  This also
    lowers the cost when such move is not necessary.

    2022-03-11  Richard Biener  <rguenther@suse.de>

            PR target/104762
            * config/i386/i386.cc (ix86_builtin_vectorization_cost): Do not
            cost the first lane of SSE pieces as inserts for vec_construct.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/104762] [12 Regression] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r regressions after r12-7319-g90d693bdc9d718
  2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-03-11 14:03 ` cvs-commit at gcc dot gnu.org
@ 2022-03-11 14:04 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-11 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104762

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-11 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 16:20 [Bug target/104762] New: x86_64 538.imagick_r 8%-28% regressions after r12-7319-g90d693bdc9d718 jamborm at gcc dot gnu.org
2022-03-02 17:02 ` [Bug target/104762] x86_64 538.imagick_r 8%-28% regressions and 10% 525.x264_r " jamborm at gcc dot gnu.org
2022-03-02 21:59 ` pinskia at gcc dot gnu.org
2022-03-03  1:20 ` crazylht at gmail dot com
2022-03-07  7:20 ` [Bug target/104762] [12 Regression] " rguenth at gcc dot gnu.org
2022-03-11 14:03 ` cvs-commit at gcc dot gnu.org
2022-03-11 14:04 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).