https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120928
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |4.9.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually GCC already has -fprofile-reorder-functions : https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Optimize-Options.html#index-fprofile-reorder-functions Which was added in 2013 (r0-127274-g9cec31f43afbdb) and first released in GCC 4.9.0 so 10 years before LLVM had it.