[lld] [lld][MachO] Add option to suppress mismatch profile errors (PR #65551)

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 10 05:36:58 PDT 2023


================
@@ -130,6 +135,9 @@ def cs_profile_generate: Flag<["--"], "cs-profile-generate">,
     HelpText<"Perform context senstive PGO instrumentation">, Group<grp_lld>;
 def cs_profile_path: Joined<["--"], "cs-profile-path=">,
     HelpText<"Context sensitive profile file path">, Group<grp_lld>;
+defm pgo_warn_mismatch: BB<"pgo-warn-mismatch",
+  "turn on warnings about profile cfg mismatch (default)",
+  "turn off warnings about profile cfg mismatch">;
----------------
int3 wrote:

Should probably have the `Group<grp_lld>` thing too

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


More information about the llvm-commits mailing list