[llvm] [Profile] Add binary profile correlation to offload profile metadata at runtime. (PR #69493)

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 12:59:04 PDT 2023


================
@@ -98,13 +99,16 @@ extern cl::opt<bool> PrintPipelinePasses;
 static cl::opt<bool> ClSanitizeOnOptimizerEarlyEP(
     "sanitizer-early-opt-ep", cl::Optional,
     cl::desc("Insert sanitizers on OptimizerEarlyEP."), cl::init(false));
-}
+
+extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
----------------
ZequanWu wrote:

There are three options to ProfileCorrelate, none (default), debug-info and binary. This patch introduces the binary mode, which is controlled by -mllvm -profile-correlate=binary. And both binary and debug-info correlation will have the default profile name `default_%m.proflite`.

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


More information about the llvm-commits mailing list