partition function into cold and hot function by using __builtin_expect

Thu May 6 16:12:04 GMT 2021

In my test : <>

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 <> 写道:
> [[likely]]

More information about the Gcc-help mailing list