Re: [PATCH 0/5] branch hint tweaks

From: Tim Blechmann
Date: Tue Nov 24 2009 - 13:22:06 EST


> Did you run profiling tests again after making these changes to see if
> they had any effect? likely() and unlikely() are only hints. GCC
> doesn't have to follow them, or it could be broken in recent GCC
> versions.

i know, the compiler doesn't have to follow the hint ... but with the
likely/unlikely profiling, not the execution time is profiled, but
whether the branch hint is pointing to the right direction on my machine
... if the assembly is actually affected does probably depend on the
compiler version, instruction set, cpu tuning ...

tim

--
tim@xxxxxxxxxx
http://tim.klingt.org

The aim of education is the knowledge, not of facts, but of values
William S. Burroughs

Attachment: signature.asc
Description: OpenPGP digital signature