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 rtl-optimization/58195] Missed optimization opportunity when returning a conditional


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

Joel Yliluoma <bisqwit at iki dot fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bisqwit at iki dot fi

--- Comment #1 from Joel Yliluoma <bisqwit at iki dot fi> ---
Problem confirmed on "gcc (GCC) 4.9.0 20140303 (experimental)" (SVN version) in
both 32-bit and 64-bit mode using -Ofast.

For comparison, Clang++ produces this instead (even on -O1): 

        negl    %edi
        movl    %edi, %eax
        ret

GCC misses an optimization opportunity here.


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