public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call
       [not found] <bug-14418-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-19 23:44 ` pinskia at gcc dot gnu.org
  2024-03-18 11:59 ` mikolajpirog at gmail dot com
  2024-03-18 12:59 ` mikolajpirog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-19 23:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-10-22 21:08:49         |2021-7-19

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-m32:
        pushl   %esi
        pushl   %ebx
        subl    $16, %esp
        movl    28(%esp), %ebx
        movl    32(%esp), %esi
        leal    (%ebx,%ebx), %eax
        pushl   %eax
        call    bar
        movl    %esi, 36(%esp)
        movl    %ebx, 32(%esp)
        addl    $20, %esp
        popl    %ebx
        popl    %esi
        jmp     quux

-m32 -march=i686:
        subl    $28, %esp
        movl    %ebx, 20(%esp)
        movl    32(%esp), %ebx
        movl    %esi, 24(%esp)
        movl    36(%esp), %esi
        leal    (%ebx,%ebx), %eax
        movl    %eax, (%esp)
        call    bar
        movl    %esi, 36(%esp)
        movl    24(%esp), %esi
        movl    %ebx, 32(%esp)
        movl    20(%esp), %ebx
        addl    $28, %esp
        jmp     quux

So in the non-i686 case, it is doing push/pop's do the same as the mov's.

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

* [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call
       [not found] <bug-14418-4@http.gcc.gnu.org/bugzilla/>
  2021-07-19 23:44 ` [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call pinskia at gcc dot gnu.org
@ 2024-03-18 11:59 ` mikolajpirog at gmail dot com
  2024-03-18 12:59 ` mikolajpirog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: mikolajpirog at gmail dot com @ 2024-03-18 11:59 UTC (permalink / raw)
  To: gcc-bugs

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

Mikołaj Piróg <mikolajpirog at gmail dot com> changed:

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

--- Comment #5 from Mikołaj Piróg <mikolajpirog at gmail dot com> ---
Is there any update regarding this bug? This still occurs in GCC 13.2 and
slightly hinders performance of applications with heavy usage of tail calls.

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

* [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call
       [not found] <bug-14418-4@http.gcc.gnu.org/bugzilla/>
  2021-07-19 23:44 ` [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call pinskia at gcc dot gnu.org
  2024-03-18 11:59 ` mikolajpirog at gmail dot com
@ 2024-03-18 12:59 ` mikolajpirog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: mikolajpirog at gmail dot com @ 2024-03-18 12:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Mikołaj Piróg <mikolajpirog at gmail dot com> ---
Oh, this is for i486-pc-linux-gnu, I overlooked that. Nevertheless, this still
occurs on x86_64-linux-gnu. Should I file new bug report regarding this?

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

* [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call
       [not found] <bug-14418-1011@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07 21:21 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-07 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from steven at gcc dot gnu dot org  2005-10-07 21:21 -------
I don't have time to work on these (new job), so unassigning.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|steven at gcc dot gnu dot   |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14418


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

* [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call
  2004-03-03 21:11 [Bug optimization/14418] New: gcc-bugzilla at gcc dot gnu dot org
@ 2005-06-25 13:23 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-06-25 13:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2005-06-25 13:23 -------
I'll try to investigate this a bit... 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-03-29 01:51:28         |2005-06-25 13:23:48
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14418


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

end of thread, other threads:[~2024-03-18 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14418-4@http.gcc.gnu.org/bugzilla/>
2021-07-19 23:44 ` [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call pinskia at gcc dot gnu.org
2024-03-18 11:59 ` mikolajpirog at gmail dot com
2024-03-18 12:59 ` mikolajpirog at gmail dot com
     [not found] <bug-14418-1011@http.gcc.gnu.org/bugzilla/>
2005-10-07 21:21 ` steven at gcc dot gnu dot org
2004-03-03 21:11 [Bug optimization/14418] New: gcc-bugzilla at gcc dot gnu dot org
2005-06-25 13:23 ` [Bug rtl-optimization/14418] Unnecessary loads and stores for tail call steven at gcc dot gnu dot 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).