aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshawbyoung <shawbyoung@gmail.com>2024-11-08 13:15:53 -0800
committerAmir Ayupov <aaupov@fb.com>2024-11-08 13:15:53 -0800
commit15643b7da8102e313a28f0f14dd4e607f7a81323 (patch)
treece25c6c7b1077e982d01f1953343f3dd7e7a90b3
parent3bd1ec25c2a99a23ac07b3e39e2d5d99a7a1dd2b (diff)
downloadllvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.zip
llvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.tar.gz
llvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.tar.bz2
Created using spr 1.3.4
-rw-r--r--bolt/lib/Profile/YAMLProfileReader.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/bolt/lib/Profile/YAMLProfileReader.cpp b/bolt/lib/Profile/YAMLProfileReader.cpp
index 07bc890..2c0c3cc 100644
--- a/bolt/lib/Profile/YAMLProfileReader.cpp
+++ b/bolt/lib/Profile/YAMLProfileReader.cpp
@@ -51,9 +51,10 @@ llvm::cl::opt<bool>
cl::desc("Match functions with call graph"), cl::Hidden,
cl::cat(BoltOptCategory));
-llvm::cl::opt<bool> MatchWithPseudoProbes(
- "match-with-pseudo-probes", cl::desc("Match functions with pseudo probes"),
- cl::Hidden, cl::cat(BoltOptCategory));
+llvm::cl::opt<bool>
+ MatchWithPseudoProbes("match-with-pseudo-probes",
+ cl::desc("Match functions with pseudo probes"),
+ cl::Hidden, cl::cat(BoltOptCategory));
llvm::cl::opt<bool> ProfileUseDFS("profile-use-dfs",
cl::desc("use DFS order for YAML profile"),
@@ -809,12 +810,11 @@ size_t YAMLProfileReader::matchWithPseudoProbes(BinaryContext &BC) {
const auto ProbeIt = Node->getProbes().begin();
const auto *Probe =
(ProbeIt != Node->getProbes().end()) ? &*ProbeIt : nullptr;
- LLVM_DEBUG(dbgs()
- << MatchedNodes << "/" << YamlBF.InlineTree.size()
- << " match with " << *BF << " at "
- << (Probe ? Probe->getInlineContextStr(GUID2FuncDescMap)
- : "(none)")
- << '\n');
+ LLVM_DEBUG(dbgs() << MatchedNodes << "/" << YamlBF.InlineTree.size()
+ << " match with " << *BF << " at "
+ << (Probe ? Probe->getInlineContextStr(GUID2FuncDescMap)
+ : "(none)")
+ << '\n');
}
MatchedWithPseudoProbes += !!Matched;
YamlBF.Used |= !!Matched;