This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/8] Add GCC_LIKELY and GCC_UNLIKELY
On 06/14/2018 02:32 PM, David Malcolm wrote:
> The idea is to later use these macros to mark the
> if (dump_enabled_p ())
> parts of the compiler as cold, in the hope of helping non-PGO builds
> of gcc.
>
> I haven't measured it yet, though.
>
> gcc/ChangeLog:
> * system.h (GCC_LIKELY, GCC_UNLIKELY): New macros, adapted from
> libgfortran.h.
ISTM if we're going to bother with this stuff that we should try to be
consistent between glibc and gcc. Anything else seems like utter
madness to me.
Jeff