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/1532] -O3 generates (obviously) redundant tests and jumps


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-24 23:49:29
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-05-24 23:49 -------
Still happends on the mainline (20030524) but it is better:
        cmpl    %edx, %eax
        je      .L15
        cmpl    %edx, %eax
        jg      .L1
        movl    %edx, %eax
.L1:
        popl    %ebp
        ret
        .p2align 4,,7
.L15:
        popl    %ebp
        leal    (%edx,%edx), %eax
        ret



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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