public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/115607] New: missed tail call with large structure size
@ 2024-06-24  6:37 pinskia at gcc dot gnu.org
  2024-06-24 17:05 ` [Bug middle-end/115607] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-24  6:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115607
           Summary: missed tail call with large structure size
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64-linux-gnu arm-linux-gnu powerpc{,64}-linux-gnu

Take:
```
typedef struct Foo {
  int a, b, c, d, e, f, g, h;
}Foo;

Foo
callee (int i);

Foo 
caller (int i)
{
  return callee (i + 1);
}
```

This can be tail called but currently we don't.
The issue is tail calls for functions where the structure return is passed via
pointer via register is not tail called.

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

* [Bug middle-end/115607] missed tail call with large structure size
  2024-06-24  6:37 [Bug middle-end/115607] New: missed tail call with large structure size pinskia at gcc dot gnu.org
@ 2024-06-24 17:05 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-24 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

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

end of thread, other threads:[~2024-06-24 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-24  6:37 [Bug middle-end/115607] New: missed tail call with large structure size pinskia at gcc dot gnu.org
2024-06-24 17:05 ` [Bug middle-end/115607] " pinskia 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).