[llvm] [NFC][StaticDataProfileInfo] Refactor StaticDataProfileInfo::getConstantSectionPrefix and extract analysis based on PGO-counter to be a helper function (PR #162388)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 14:10:17 PDT 2025
================
@@ -44,6 +47,20 @@ class StaticDataProfileInfo {
LLVM_ABI std::optional<uint64_t>
getConstantProfileCount(const Constant *C) const;
+ enum class StaticDataHotness : uint8_t {
+ Cold = 0,
+ LukewarmOrUnknown = 1,
----------------
snehasish wrote:
Prefer unknown as 0 so that any accidentally uninitialized value will default to unknown.
https://github.com/llvm/llvm-project/pull/162388
More information about the llvm-commits
mailing list