[Bug target/65474] sub-optimal code for __builtin_abs

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 19 19:35:00 GMT 2015


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i?86-*-* x86_64-*-*
          Component|middle-end                  |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Conditional move might be slower on some processors.
Yes this would be an optimization for -Os but it depends on the timings for the
specific processor.

Have you done a micro benchmark to find out which implementation is better on
different processors?



More information about the Gcc-bugs mailing list