[llvm] [StaticDataLayout] Reconcile two sources of variable hotness (PR #155337)

via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 23:24:51 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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/Analysis/StaticDataProfileInfo.h llvm/include/llvm/IR/GlobalObject.h llvm/lib/Analysis/StaticDataProfileInfo.cpp llvm/lib/CodeGen/StaticDataAnnotator.cpp llvm/lib/IR/Globals.cpp llvm/lib/ProfileData/DataAccessProf.cpp llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
``````````

: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/llvm/include/llvm/IR/GlobalObject.h b/llvm/include/llvm/IR/GlobalObject.h
index 58138c792..740d7fb9b 100644
--- a/llvm/include/llvm/IR/GlobalObject.h
+++ b/llvm/include/llvm/IR/GlobalObject.h
@@ -125,7 +125,8 @@ public:
   /// the section prefix metadata will be cleared if it exists.
   LLVM_ABI void setSectionPrefix(StringRef Prefix);
 
-  /// If \p Prefix is different from existing prefix, update section prefix. Returns true if an update happens and false otherwise.
+  /// If \p Prefix is different from existing prefix, update section prefix.
+  /// Returns true if an update happens and false otherwise.
   LLVM_ABI bool updateSectionPrefix(StringRef Prefix);
 
   /// Get the section prefix for this global object.

``````````

</details>


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


More information about the llvm-commits mailing list