[llvm] [BOLT][merge-fdata] Fix basic sample profile aggregation without LBR info (PR #118481)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 09:58:07 PST 2024


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 3a01b46dae1a00f77ed8c46a4239595803c9e35e c0356a54f08e7685093d62b5747e0b1a8d5d9826 --extensions cpp -- bolt/tools/merge-fdata/merge-fdata.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/tools/merge-fdata/merge-fdata.cpp b/bolt/tools/merge-fdata/merge-fdata.cpp
index dbff4c4429..8c23bdbaa4 100644
--- a/bolt/tools/merge-fdata/merge-fdata.cpp
+++ b/bolt/tools/merge-fdata/merge-fdata.cpp
@@ -304,16 +304,12 @@ void mergeLegacyProfiles(const SmallVectorImpl<std::string> &Filenames) {
         StringRef FirstLine = Buf.substr(0, FirstNewline);
         if (FirstLine.contains("no_lbr")) {
           if (!NoLBRCollection.value_or(true))
-            report_error(
-                Filename,
-                "cannot mix 'no_lbr' and 'lbr' profiles");
+            report_error(Filename, "cannot mix 'no_lbr' and 'lbr' profiles");
           NoLBRCollection = true;
           Buf = Buf.drop_front(FirstNewline + 1);
         } else {
           if (NoLBRCollection.value_or(false))
-            report_error(
-                Filename,
-                "cannot mix 'no_lbr' and 'lbr' profiles");
+            report_error(Filename, "cannot mix 'no_lbr' and 'lbr' profiles");
           NoLBRCollection = false;
         }
       }

``````````

</details>


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


More information about the llvm-commits mailing list