[clang] [llvm] [PGO]Add `-fdiagnostics-show-profile-count` option to show real loop count from instr-profile (PR #75021)
    Elvis Wang via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jan  7 19:33:10 PST 2024
    
    
  
================
@@ -2091,6 +2091,12 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
   bool UsingProfile =
       UsingSampleProfile || !Opts.ProfileInstrumentUsePath.empty();
 
+  if (Args.hasArg(options::OPT_fdiagnostics_show_profile_count) &&
----------------
ElvisWang123 wrote:
Thanks for your comment! Remove `-cc1` option and migrate warning  generation to driver.
https://github.com/llvm/llvm-project/pull/75021
    
    
More information about the llvm-commits
mailing list