public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99531] New: Performance regression since gcc 9 (argument passing / register allocation)
@ 2021-03-10 22:36 stefanrin at gmail dot com
  2021-03-11  8:32 ` [Bug target/99531] " rguenth at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: stefanrin at gmail dot com @ 2021-03-10 22:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99531
           Summary: Performance regression since gcc 9 (argument passing /
                    register allocation)
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefanrin at gmail dot com
  Target Milestone: ---
            Target: x86_64

For this source:

int func(int, int, int, int, int, int);
int caller(int a, int b, int c, int d, int e) { return func(0, a, b, c, d, e);
}

the code generated for caller is:

pushq %r12
movl %r8d, %r9d
popq %r12
movl %ecx, %r8d
movl %edx, %ecx
movl %esi, %edx
movl %edi, %esi
xorl %edi, %edi
jmp func

gcc 9 started producing the useless push/pop pair.

Mailing list link:
https://gcc.gnu.org/pipermail/gcc-help/2021-February/139885.html

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

end of thread, other threads:[~2024-05-22  0:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 22:36 [Bug target/99531] New: Performance regression since gcc 9 (argument passing / register allocation) stefanrin at gmail dot com
2021-03-11  8:32 ` [Bug target/99531] " rguenth at gcc dot gnu.org
2021-03-11  8:32 ` [Bug target/99531] [9/10/11 Regression] " rguenth at gcc dot gnu.org
2021-03-11  9:35 ` marxin at gcc dot gnu.org
2021-04-08 13:05 ` rguenth at gcc dot gnu.org
2021-06-01  8:19 ` [Bug target/99531] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-12-07 13:48 ` vmakarov at gcc dot gnu.org
2021-12-13 19:11 ` cvs-commit at gcc dot gnu.org
2021-12-14 15:04 ` cvs-commit at gcc dot gnu.org
2022-05-27  9:44 ` [Bug target/99531] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-01-12 23:36 ` [Bug target/99531] [10/11 " roger at nextmovesoftware dot com
2023-07-07 10:39 ` [Bug target/99531] [11 " rguenth at gcc dot gnu.org
2024-05-20 23:14 ` olegendo at gcc dot gnu.org
2024-05-22  0:05 ` olegendo 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).