From: Gerald Pfeifer Date: Sat, 13 Sep 2025 10:40:38 +0000 (+0200) Subject: doc: Editorial changes around -fprofile-partial-training X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=205b5a5741875c7435facb706a15f1410338a4e0;p=thirdparty%2Fgcc.git doc: Editorial changes around -fprofile-partial-training gcc: * doc/invoke.texi (Optimize Options): Editorial changes around -fprofile-partial-training. --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d0c13d4a24e..3ffc8d8d4a2 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -15592,16 +15592,16 @@ This option is enabled by @option{-fauto-profile}. @opindex fprofile-partial-training @item -fprofile-partial-training -With @code{-fprofile-use} all portions of programs not executed during train -run are optimized aggressively for size rather than speed. In some cases it is -not practical to train all possible hot paths in the program. (For -example, program may contain functions specific for a given hardware and -training may not cover all hardware configurations program is run on.) With -@code{-fprofile-partial-training} profile feedback is ignored for all -functions not executed during the train run, leading them to be optimized as if -they were compiled without profile feedback. This leads to better performance -when train run is not representative but also leads to significantly bigger -code. +With @code{-fprofile-use} all portions of programs not executed during +training runs are optimized aggressively for size rather than speed. +In some cases it is not practical to train all possible hot paths in +the program. (For example, it may contain functions specific to a +given hardware and training may not cover all hardware configurations +the program later runs on.) With @code{-fprofile-partial-training} +profile feedback is ignored for all functions not executed during the +training runs, causing them to be optimized as if they were compiled +without profile feedback. This leads to better performance when the +training is not representative at the cost of significantly bigger code. @opindex fprofile-use @item -fprofile-use