[llvm] 3940f1e - [ProfData] Change type of options from int to uint64_t.

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 10:59:20 PST 2022


Author: minglotus-6
Date: 2022-02-15T10:59:06-08:00
New Revision: 3940f1e2372c69e04f50f86bcfc1182a1549ec32

URL: https://github.com/llvm/llvm-project/commit/3940f1e2372c69e04f50f86bcfc1182a1549ec32
DIFF: https://github.com/llvm/llvm-project/commit/3940f1e2372c69e04f50f86bcfc1182a1549ec32.diff

LOG: [ProfData] Change type of options from int to uint64_t.

- Reader uses option values to override uint64_t values.

Differential Revision: https://reviews.llvm.org/D119810

Added: 
    

Modified: 
    llvm/lib/ProfileData/ProfileSummaryBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp b/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
index 8ec26b0a0e650..7fce2e2a35a14 100644
--- a/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
+++ b/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
@@ -59,12 +59,12 @@ cl::opt<unsigned> ProfileSummaryLargeWorkingSetSizeThreshold(
 
 // The next two options override the counts derived from summary computation and
 // are useful for debugging purposes.
-cl::opt<int> ProfileSummaryHotCount(
+cl::opt<uint64_t> ProfileSummaryHotCount(
     "profile-summary-hot-count", cl::ReallyHidden, cl::ZeroOrMore,
     cl::desc("A fixed hot count that overrides the count derived from"
              " profile-summary-cutoff-hot"));
 
-cl::opt<int> ProfileSummaryColdCount(
+cl::opt<uint64_t> ProfileSummaryColdCount(
     "profile-summary-cold-count", cl::ReallyHidden, cl::ZeroOrMore,
     cl::desc("A fixed cold count that overrides the count derived from"
              " profile-summary-cutoff-cold"));


        


More information about the llvm-commits mailing list