[llvm-branch-commits] [BOLT] Support pre-aggregated basic sample profile (PR #140196)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 15 23:18:19 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- bolt/include/bolt/Profile/DataAggregator.h bolt/lib/Profile/DataAggregator.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index 6e8899080..02ae9e0b8 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -1260,7 +1260,8 @@ std::error_code DataAggregator::parseAggregatedLBREntry() {
for (int I = 0; I < CounterNum; ++I) {
while (checkAndConsumeFS()) {
}
- if (ErrorOr<int64_t> Count = parseNumberField(FieldSeparator, I + 1 == CounterNum))
+ if (ErrorOr<int64_t> Count =
+ parseNumberField(FieldSeparator, I + 1 == CounterNum))
Counters[I] = Count.get();
else
return Count.getError();
``````````
</details>
https://github.com/llvm/llvm-project/pull/140196
More information about the llvm-branch-commits
mailing list