public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu
@ 2022-11-19 17:34 law at gcc dot gnu.org
2022-11-19 19:07 ` [Bug rtl-optimization/107762] " ebotcazou at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: law at gcc dot gnu.org @ 2022-11-19 17:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Bug ID: 107762
Summary: [13 Regression] Recent change causing regressions on
s390-linux-gnu
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
CC: ebotcazou at gcc dot gnu.org
Target Milestone: ---
Target: s390-linux-gnu
This change:
commit 3e2bdf2460a34a2389dee813a2ba8ecf976f2ec9
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Fri Nov 4 11:15:57 2022 +0100
Do not use subword paradoxical subregs in emit_group_store
The goal of the trick is to make life easier for the combiner, but subword
paradoxical subregs make it harder for the register allocator instead.
gcc/
* expr.cc (emit_group_store): Do not use subword paradoxical
subregs
Is causing at least two regressions on s390-linux-gnu:
Tests that now fail, but worked before (19 tests):
[ ... ]
gcc.target/s390/arch12/mul-1.c scan-assembler-times \tmsgrkc\t 1
gcc.target/s390/arch13/sel-1.c scan-assembler-times \tselgr(?:h|le)\t 1
[ ... ]
Those are the only two that I have positively confirmed are due to the
emit_group_store change.
I looked briefly at the resulting assembly code for the mul-1 test and it looks
worse to me after that change. But I'm far from an s390 expert.
You can see this with a cross compiler, you don't need a full toolchain to
test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
@ 2022-11-19 19:07 ` ebotcazou at gcc dot gnu.org
2022-11-22 8:31 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2022-11-19 19:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2022-11-19
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Is causing at least two regressions on s390-linux-gnu:
> Tests that now fail, but worked before (19 tests):
> [ ... ]
> gcc.target/s390/arch12/mul-1.c scan-assembler-times \tmsgrkc\t 1
> gcc.target/s390/arch13/sel-1.c scan-assembler-times \tselgr(?:h|le)\t 1
> [ ... ]
>
> Those are the only two that I have positively confirmed are due to the
> emit_group_store change.
>
> I looked briefly at the resulting assembly code for the mul-1 test and it
> looks worse to me after that change. But I'm far from an s390 expert.
Thanks for the heads up, I'll have a quick look.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
2022-11-19 19:07 ` [Bug rtl-optimization/107762] " ebotcazou at gcc dot gnu.org
@ 2022-11-22 8:31 ` rguenth at gcc dot gnu.org
2023-02-21 13:45 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-11-22 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
2022-11-19 19:07 ` [Bug rtl-optimization/107762] " ebotcazou at gcc dot gnu.org
2022-11-22 8:31 ` rguenth at gcc dot gnu.org
@ 2023-02-21 13:45 ` rguenth at gcc dot gnu.org
2023-03-14 8:18 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-02-21 13:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (2 preceding siblings ...)
2023-02-21 13:45 ` rguenth at gcc dot gnu.org
@ 2023-03-14 8:18 ` jakub at gcc dot gnu.org
2023-03-14 9:38 ` ebotcazou at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-03-14 8:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Eric, any progress on this?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (3 preceding siblings ...)
2023-03-14 8:18 ` jakub at gcc dot gnu.org
@ 2023-03-14 9:38 ` ebotcazou at gcc dot gnu.org
2023-03-14 10:43 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-03-14 9:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Indeed this pessimizes on s390 because it has insv instructions. It's too late
to properly sort this out so I'm going to revert the change.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (4 preceding siblings ...)
2023-03-14 9:38 ` ebotcazou at gcc dot gnu.org
@ 2023-03-14 10:43 ` cvs-commit at gcc dot gnu.org
2023-03-14 10:43 ` ebotcazou at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-14 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641
commit r13-6659-g8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Tue Mar 14 10:39:11 2023 +0100
Revert latest change to emit_group_store
This pessimizes on targets with insv instructions.
gcc/
PR rtl-optimization/107762
* expr.cc (emit_group_store): Revert latest change.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (5 preceding siblings ...)
2023-03-14 10:43 ` cvs-commit at gcc dot gnu.org
@ 2023-03-14 10:43 ` ebotcazou at gcc dot gnu.org
2023-03-14 11:35 ` jakub at gcc dot gnu.org
2023-03-14 11:48 ` ebotcazou at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-03-14 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (6 preceding siblings ...)
2023-03-14 10:43 ` ebotcazou at gcc dot gnu.org
@ 2023-03-14 11:35 ` jakub at gcc dot gnu.org
2023-03-14 11:48 ` ebotcazou at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-03-14 11:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So perhaps make it dependent on targetm.have_insv () or
targetm.have_insv () && get_traditional_extraction_insn (insn, type, mode,
targetm.code_for_insv, 0, 3)
or something like that (perhaps for GCC 14)? If it really is generally
undesirable
for targets with insv and desirable for ones without it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
` (7 preceding siblings ...)
2023-03-14 11:35 ` jakub at gcc dot gnu.org
@ 2023-03-14 11:48 ` ebotcazou at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-03-14 11:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> So perhaps make it dependent on targetm.have_insv () or
> targetm.have_insv () && get_traditional_extraction_insn (insn, type, mode,
> targetm.code_for_insv, 0, 3)
> or something like that (perhaps for GCC 14)? If it really is generally
> undesirable for targets with insv and desirable for ones without it.
Yes, worth investigating at least, thanks for the suggestion.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-03-14 11:48 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-19 17:34 [Bug rtl-optimization/107762] New: [13 Regression] Recent change causing regressions on s390-linux-gnu law at gcc dot gnu.org
2022-11-19 19:07 ` [Bug rtl-optimization/107762] " ebotcazou at gcc dot gnu.org
2022-11-22 8:31 ` rguenth at gcc dot gnu.org
2023-02-21 13:45 ` rguenth at gcc dot gnu.org
2023-03-14 8:18 ` jakub at gcc dot gnu.org
2023-03-14 9:38 ` ebotcazou at gcc dot gnu.org
2023-03-14 10:43 ` cvs-commit at gcc dot gnu.org
2023-03-14 10:43 ` ebotcazou at gcc dot gnu.org
2023-03-14 11:35 ` jakub at gcc dot gnu.org
2023-03-14 11:48 ` ebotcazou 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).