This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/12419] [3.3/3.4 Regression] Performace regression: poor optimization of const memory


------- Additional Comments From steven at gcc dot gnu dot org  2003-12-18 17:29 -------
The bug is still present on mainline... 
(cc1 -O2 -fomit-frame-pointer-march=i686 -mtune=i686 ): 
 
foo: 
        pushl   %ebx 
        subl    $8, %esp 
        movl    a, %ebx 
        call    f 
        movl    a, %eax 
        addl    $8, %esp 
        addl    %eax, %ebx 
        movl    %ebx, %eax 
        popl    %ebx 
        ret 
 
 
Just for fun, here's what tree-ssa makes of it 
 
foo: 
        pushl   %ebx 
        subl    $8, %esp 
        movl    a, %ebx 
        call    f 
        addl    $8, %esp 
        leal    (%ebx,%ebx), %eax 
        popl    %ebx 
        ret 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-09-27 06:36:21         |2003-12-18 17:29:55
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]