[llvm] [ctx_prof] Fix checks in `PGOCtxprofFlattening` (PR #108467)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 15:03:04 PDT 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 6292ea6879217468cd9187d4f4dd3ee7c713431c 02735cf614dee1f642fc0e60084836cd068fe7e4 --extensions cpp -- llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp b/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp
index cbb02bf500..389b7617df 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp
@@ -63,7 +63,7 @@ class ProfileAnnotator final {
// Return std::nullopt if there were no edges to sum. The user can decide
// how to interpret that.
std::optional<uint64_t> getEdgeSum(const SmallVector<EdgeInfo *> &Edges,
- bool AssumeAllKnown) const {
+ bool AssumeAllKnown) const {
std::optional<uint64_t> Sum;
for (const auto *E : Edges)
if (E) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/108467
More information about the llvm-commits
mailing list