Which information does GCC collect when I enable -fprofile-generate and which optimization does in fact uses the collected information (when setting the -fprofile-use flag) ?
I need citations here. I’ve searched for a while but didn’t found anything documented.
Information regarding link-time optimization (LTO) would be a plus! =D
-fprofile-generateenables-fprofile-arcs,-fprofile-valuesand-fvpt.-fprofile-useenables-fbranch-probabilities,-fvpt,-funroll-loops,-fpeel-loopsand-ftracerSource: http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Optimize-Options.html#Optimize-Options
PS. Information about LTO also on that page.