Re: partition function into cold and hot function by using __builtin_expect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In my test : https://godbolt.org/z/87dWMejPP <https://godbolt.org/z/87dWMejPP>

It seems [[likely]] and [[unlikely]] just have same effective like __builtin_expect;

Will not split function into cold function and hot function ( which __attribute__((cold)) on callee function can do so).

> 2021年5月6日 下午7:27,Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 写道:
> 
> [[likely]]





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux