[llvm] Change how branch weight is annotated for direct call (PR #90315)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 23:48:43 PDT 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 1e1ec916d30dc842e914e8a884f1bb4f62916730 25dd4042586b02284b34ba8f02da5be1278aed61 -- llvm/include/llvm/ProfileData/SampleProf.h llvm/lib/ProfileData/SampleProf.cpp llvm/lib/Transforms/IPO/SampleProfile.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/ProfileData/SampleProf.cpp b/llvm/lib/ProfileData/SampleProf.cpp
index 8d3b520756..1e471ccde8 100644
--- a/llvm/lib/ProfileData/SampleProf.cpp
+++ b/llvm/lib/ProfileData/SampleProf.cpp
@@ -275,8 +275,9 @@ void FunctionSamples::findAllNames(DenseSet<FunctionId> &NameSet) const {
   }
 }
 
-const uint64_t *FunctionSamples::findCallTargetAt(const LineLocation &Callsite,
-    StringRef CalleeName, SampleProfileReaderItaniumRemapper *Remapper) const {
+const uint64_t *FunctionSamples::findCallTargetAt(
+    const LineLocation &Callsite, StringRef CalleeName,
+    SampleProfileReaderItaniumRemapper *Remapper) const {
   const auto &FindRes = BodySamples.find(mapIRLocToProfileLoc(Callsite));
   if (FindRes == BodySamples.end())
     return nullptr;

``````````

</details>


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


More information about the llvm-commits mailing list