[llvm] [CodeGen][StaticDataPartitioning]Place local-linkage global variables in hot or unlikely prefixed sections based on profile information (PR #125756)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 27 22:52:29 PDT 2025
================
@@ -0,0 +1,68 @@
+#ifndef LLVM_ANALYSIS_STATICDATAPROFILEINFO_H
----------------
mingmingl-llvm wrote:
Overall, I don't feel strong about having new classes in `ProfileSummaryInfo.h` or in new files. Actually I once thought about the former and hesitated between the two.
I ended up with the latter mainly because PSI is included in multiple cpp files, and the new classes don't need to be included as much.
As the static data partitioning work is under development and symbolized data access profiles may need helper functions and libraries, I think we can keep it this way and do refactors later where they fit. What do you think about this?
https://github.com/llvm/llvm-project/pull/125756
More information about the llvm-commits
mailing list