[lld] [lld][ELF] Extend profile guided function ordering to ELF binaries (PR #117514)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 18:51:36 PST 2024


================
@@ -141,6 +141,20 @@ def call_graph_profile_sort: JJ<"call-graph-profile-sort=">,
 def : FF<"no-call-graph-profile-sort">, Alias<call_graph_profile_sort>, AliasArgs<["none"]>,
   Flags<[HelpHidden]>;
 
+defm irpgo_profile_sort: Eq<"irpgo-profile-sort",
----------------
Colibrow wrote:

LGTM. 
How about this separation in Mach-O, as it is currently used in both ELF and Mach-O? Or implement it just in ELF in this commit?

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


More information about the llvm-commits mailing list