I read about the attributes likely
and unlikely
of c++20, and i want to ask if there are some reasonable and official data of performance advantages that this new attributes give to the execution.
I mean there are examples execution test that give me a measure of how much this feature has impact on performance when the code is executed?
I noticed that this attributes are often used in linux kernel development ( in C code ). So my question is:
Does not the compiler optimaze the code sufficiently already? There are example or proof of the effective improved performances?
Is this true for all kind of machine or some architectures need Likely/Unlikely for a good improvement?
EDIT :
I'm searching for Graph or data that demostrate the effeciency of this kind of suggestion to the compiler. ( I search online, but i don't find nothing good ) If someone know some paper, or similar can answer this question?