[llvm-branch-commits] [BOLT] Support multiple perf data inputs (PR #199324)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 22 21:50:37 PDT 2026


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 origin/main HEAD --extensions h,cpp -- bolt/include/bolt/Profile/DataAggregator.h bolt/include/bolt/Utils/CommandLineOpts.h bolt/lib/Profile/DataAggregator.cpp bolt/lib/Rewrite/RewriteInstance.cpp bolt/lib/Utils/CommandLineOpts.cpp bolt/tools/driver/llvm-bolt.cpp bolt/tools/heatmap/heatmap.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index 4b8442b2c..d47ea41a5 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -476,7 +476,8 @@ Error RewriteInstance::setProfile(StringRef Filename) {
     if (DataAggregator::checkPerfDataMagic(Filename) &&
         // Poor man's RTTI
         ProfileReader->getReaderName() == StringRef("perf data aggregator")) {
-      static_cast<DataAggregator *>(ProfileReader.get())->addInputFile(Filename);
+      static_cast<DataAggregator *>(ProfileReader.get())
+          ->addInputFile(Filename);
       return Error::success();
     }
     // Already exists

``````````

</details>


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


More information about the llvm-branch-commits mailing list