[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

Snehasish Kumar via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 2 11:41:59 PDT 2024


================
@@ -1784,6 +1784,12 @@ defm debug_info_for_profiling : BoolFOption<"debug-info-for-profiling",
   PosFlag<SetTrue, [], [ClangOption, CC1Option],
           "Emit extra debug info to make sample profile more accurate">,
   NegFlag<SetFalse>>;
+def fprofile_generate_cold_function_coverage : Flag<["-"], "fprofile-generate-cold-function-coverage">, 
----------------
snehasish wrote:

>  also to centralize the configuration for the convenience

+1 I think a frontend flag is useful. It allows us to identify incompatibilities early and provide clear error messages instead of more obscure failures down the line.

https://github.com/llvm/llvm-project/pull/109837


More information about the cfe-commits mailing list