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



--- Comment #26 from Dmitry Vyukov <dvyukov at google dot com> 2012-11-23 
08:34:52 UTC ---

(In reply to comment #25)

> Have you considered using __builtin_expect to help the compiler in the

> performance sensitive code?  Or even better would be profile-feedback, build

> libtsan once, run some benchmark, build libtsan again.



There are few of them in the code in the obvious cases. The performance is very

shaky and depends on compiler, compiler version and options. I remember I get

worse results when I added some other likily/unlikely. I didn't have time for

more comprehensive investigation. FDO may be a good idea for prebuild

libraries.

Reply via email to