[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 13:03:17 PDT 2023


================
@@ -60,10 +60,7 @@ using namespace llvm;
 #define DEBUG_TYPE "instrprof"
 
 namespace llvm {
-cl::opt<bool>
-    DebugInfoCorrelate("debug-info-correlate",
-                       cl::desc("Use debug info to correlate profiles."),
-                       cl::init(false));
----------------
ZequanWu wrote:

I found cl::alias cannot be used to alias one option of another flag (e.g. -profile-correlate=debug-info). So, every place we uses ProfileCorrelate needs to have a check for DebugInfoCorrelate. I don't know how you update llvm toolchain, is it possible to switch to new flag at the time when updating the toolchain?

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


More information about the llvm-commits mailing list