[PATCH] D116508: [llvm-profgen] Error out for unsupported AutoFDO profile generate with probe

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 2 16:40:42 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9a2120a6e1fc: [llvm-profgen] Error out for unsupported AutoFDO profile generate with probe (authored by wenlei).

Changed prior to commit:
  https://reviews.llvm.org/D116508?vs=396965&id=396966#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116508/new/

https://reviews.llvm.org/D116508

Files:
  llvm/tools/llvm-profgen/ProfileGenerator.cpp


Index: llvm/tools/llvm-profgen/ProfileGenerator.cpp
===================================================================
--- llvm/tools/llvm-profgen/ProfileGenerator.cpp
+++ llvm/tools/llvm-profgen/ProfileGenerator.cpp
@@ -383,6 +383,8 @@
 void ProfileGenerator::generateProfile() {
   if (Binary->usePseudoProbes()) {
     // TODO: Support probe based profile generation
+    exitWithError("Probe based profile generation not supported for AutoFDO, "
+      "consider dropping `--ignore-stack-samples` or adding `--use-dwarf-correlation`.");
   } else {
     generateLineNumBasedProfile();
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116508.396966.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220103/f8b9ea18/attachment.bin>


More information about the llvm-commits mailing list