[llvm-branch-commits] [BOLT][NFCI] Switch heatmap to using parsed basic/branch events (PR #136531)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Apr 20 19:52:07 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 h,cpp -- bolt/include/bolt/Profile/DataAggregator.h bolt/include/bolt/Profile/Heatmap.h bolt/lib/Profile/DataAggregator.cpp bolt/lib/Profile/Heatmap.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 ef4799f59..04888ca9d 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -1346,7 +1346,7 @@ std::error_code DataAggregator::printHeatMap() {
   outs() << "HEATMAP: building heat map...\n";
 
   if (opts::BasicAggregation) {
-    for (const auto &[PC, Hits]: BasicSamples)
+    for (const auto &[PC, Hits] : BasicSamples)
       HM.registerAddress(PC, Hits);
   } else {
     for (const auto &[Trace, Info] : FallthroughLBRs)

``````````

</details>


https://github.com/llvm/llvm-project/pull/136531


More information about the llvm-branch-commits mailing list