[llvm] [PGO] Drive profile validator from opt (PR #147418)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 07:52:34 PDT 2025


================
@@ -217,6 +217,15 @@ static cl::opt<bool> VerifyDebugInfoPreserve(
     cl::desc("Start the pipeline with collecting and end it with checking of "
              "debug info preservation."));
 
+static cl::opt<bool> EnableProfileVerification(
+    "enable-profcheck",
+#if defined(LLVM_ENABLE_PROFCHECK)
+    cl::init(true),
+#else
+    cl::init(false),
+#endif
+    cl::desc("Start the pipeline with prof-inject and end it with prof-check"));
----------------
mtrofin wrote:

oh, yes - thanks for the catch. #151979.

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


More information about the llvm-commits mailing list