[llvm-branch-commits] [BOLT][NFCI] Simplify DataAggregator using traces (PR #143289)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jun 7 16:01:25 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/BoltAddressTranslation.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 959f33a7d..ee3d22cd5 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -1380,8 +1380,8 @@ void DataAggregator::parseLBRSample(const PerfBranchSample &Sample,
// chronological order)
if (NeedsSkylakeFix && NumEntry <= 2)
continue;
- TakenBranchInfo &Info = TraceMap[Trace{LBR.From, LBR.To,
- NextLBR ? NextLBR->From : Trace::EXTERNAL}];
+ TakenBranchInfo &Info = TraceMap[Trace{
+ LBR.From, LBR.To, NextLBR ? NextLBR->From : Trace::EXTERNAL}];
++Info.TakenCount;
Info.MispredCount += LBR.Mispred;
NextLBR = &LBR;
``````````
</details>
https://github.com/llvm/llvm-project/pull/143289
More information about the llvm-branch-commits
mailing list