Thank you for this. My question was about something more specific
however. I am interested specifically in branch prediction. For
example one could add __builtin_expect or the compiler can use the
information it finds in its profiling. How is this information used
by gcc to provide optimised ass
Is there any documentation for what gcc does with branch prediction
information it gets from profiling? I am interested in this for
modern Pentium processors where you can no longer give hints.
Specifically I am interested in whether there are in fact any
optimisations that work reliably from thi