[llvm-branch-commits] [llvm] [BOLT] Match functions with pseudo probes (PR #100446)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 8 13:15:18 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 7be0b9e05cd110082fdba1f58f6b900756985981 3bd1ec25c2a99a23ac07b3e39e2d5d99a7a1dd2b --extensions h,cpp -- bolt/include/bolt/Profile/YAMLProfileReader.h bolt/lib/Profile/YAMLProfileReader.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Profile/YAMLProfileReader.cpp b/bolt/lib/Profile/YAMLProfileReader.cpp
index 07bc890926..2c0c3cc137 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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/100446
More information about the llvm-branch-commits
mailing list