This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Remove unnecesary bulitin_expect markers
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sun, 19 Apr 2009 00:53:21 +0200
- Subject: Re: Remove unnecesary bulitin_expect markers
- References: <20090418223743.GD24940@kam.mff.cuni.cz>
Jan Hubicka wrote:
> Hi,
> libstdc++ headers include a lot of __builtin_expect calls guarding
> throw. GCC can work out this bit itself becuase function is noreturn.
> Having the __builtin_expect markers there is just going to add some IL
> overhead until end of inlining process.
>
> Tested on x86_64-linux, OK?
>
Ok, thanks.
Paolo.