Re:Can you trust a compiler to optimize your code?
by quelltext on Wednesday August 02, 2023 @01:55AM
(#36967430)
No quite, those are hints to guide the optimizer to do a better job based on programmer knowledge. They aren't attributes to indicate "I expect / need this particular optimization A to be done on this code block".
https://en.cppreference.com/w/cpp/language/attributes/likely