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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to