diff options
author | Wenlei He <aktoon@gmail.com> | 2022-01-02 16:25:27 -0800 |
---|---|---|
committer | Wenlei He <aktoon@gmail.com> | 2022-01-02 16:38:56 -0800 |
commit | 9a2120a6e1fcefbfabbe8d25f14e056fadc37f2d (patch) | |
tree | 4841b716278f9b4a19eb81588a127bd4c35ef792 | |
parent | 3f127d8aaaef2ad4fc461c13bab2ec1482ea34f0 (diff) | |
download | llvm-9a2120a6e1fcefbfabbe8d25f14e056fadc37f2d.zip llvm-9a2120a6e1fcefbfabbe8d25f14e056fadc37f2d.tar.gz llvm-9a2120a6e1fcefbfabbe8d25f14e056fadc37f2d.tar.bz2 |
[llvm-profgen] Error out for unsupported AutoFDO profile generate with probe
Error out instead of siliently generate empty profile when trying to generate AutoFDO profile with probe binary.
Differential Revision: https://reviews.llvm.org/D116508
-rw-r--r-- | llvm/tools/llvm-profgen/ProfileGenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-profgen/ProfileGenerator.cpp b/llvm/tools/llvm-profgen/ProfileGenerator.cpp index f03e407..7155ec4 100644 --- a/llvm/tools/llvm-profgen/ProfileGenerator.cpp +++ b/llvm/tools/llvm-profgen/ProfileGenerator.cpp @@ -383,6 +383,8 @@ ProfileGenerator::getTopLevelFunctionProfile(StringRef FuncName) { 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(); } |