https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120928
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alexander Zaitsev from comment #4) > Oh, great! Somehow I missed it. Sorry for the annoyance - next time, I need > to read the documentation more carefully. Thank you for your help! Also if you read the RFC, davidxl metioned about GCC's "timing profiling": https://discourse.llvm.org/t/rfc-temporal-profiling-extension-for-irpgo/68068/5 Which is exactly what fprofile-reorder-functions is for.