gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Use LIKELY/UNLIKELY macros more aggressively #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Usage LIKELY/UNLIKELY macros (defined in sanitizer_internal_defs.h) may provide 
significant speedups when applied to perfomance critical spots.

It may make sense to use them at least for
* CHECK* family
* all checks for __asan_inited (including ENSURE_ASAN_INITED)

Original issue reported on code.google.com by tetra2...@gmail.com on 31 Mar 2014 at 9:34

GoogleCodeExporter commented 9 years ago
http://llvm.org/viewvc/llvm-project?view=revision&revision=208776
adds some LIKELY/UNLIKELY

Feel free to add more separately. 

Original comment by konstant...@gmail.com on 14 May 2014 at 2:13