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


steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-05-24 23:49:29         |2003-07-29 08:39:17
               date|                            |


------- Additional Comments From steven at gcc dot gnu dot org  2003-07-29 08:39 -------
Still there with no arch/tune options.
Current mainline ("GNU C version 3.4 20030728 (experimental)") with "-O3
-fomit-frame-pointer -march=i686 -mtune=i686" produces:

foo:
        movl    4(%esp), %edx
        movl    8(%esp), %eax
        cmpl    %eax, %edx
        je      .L15
        cmpl    %eax, %edx
        cmovg   %edx, %eax
        ret
        .p2align 4,,7
.L15:
        addl    %eax, %eax
        ret


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