/external/llvm-project/llvm/lib/Analysis/ |
D | ProfileSummaryInfo.cpp | 210 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) const { in isFunctionHotOrColdInCallGraphNthPercentile() argument 215 isHotCountNthPercentile(PercentileCutoff, FunctionCount.getCount())) in isFunctionHotOrColdInCallGraphNthPercentile() 218 !isColdCountNthPercentile(PercentileCutoff, FunctionCount.getCount())) in isFunctionHotOrColdInCallGraphNthPercentile() 228 if (isHot && isHotCountNthPercentile(PercentileCutoff, TotalCallCount)) in isFunctionHotOrColdInCallGraphNthPercentile() 230 if (!isHot && !isColdCountNthPercentile(PercentileCutoff, TotalCallCount)) in isFunctionHotOrColdInCallGraphNthPercentile() 234 if (isHot && isHotBlockNthPercentile(PercentileCutoff, &BB, &BFI)) in isFunctionHotOrColdInCallGraphNthPercentile() 236 if (!isHot && !isColdBlockNthPercentile(PercentileCutoff, &BB, &BFI)) in isFunctionHotOrColdInCallGraphNthPercentile() 244 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) const { in isFunctionHotInCallGraphNthPercentile() argument 246 PercentileCutoff, F, BFI); in isFunctionHotInCallGraphNthPercentile() 250 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) const { in isFunctionColdInCallGraphNthPercentile() argument [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineSizeOpts.cpp | 46 static bool isHotBlockNthPercentile(int PercentileCutoff, in isHotBlockNthPercentile() argument 51 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 54 static bool isHotBlockNthPercentile(int PercentileCutoff, in isHotBlockNthPercentile() argument 59 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 62 static bool isColdBlockNthPercentile(int PercentileCutoff, in isColdBlockNthPercentile() argument 67 return Count && PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlockNthPercentile() 70 static bool isColdBlockNthPercentile(int PercentileCutoff, in isColdBlockNthPercentile() argument 75 return Count && PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlockNthPercentile() 96 int PercentileCutoff, in isFunctionHotInCallGraphNthPercentile() argument 101 if (PSI->isHotCountNthPercentile(PercentileCutoff, in isFunctionHotInCallGraphNthPercentile() [all …]
|
D | MachineFunctionSplitter.cpp | 50 PercentileCutoff("mfs-psi-cutoff", variable 87 if (PercentileCutoff > 0) { in isColdBlock() 88 return PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlock()
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | ProfileSummaryInfo.h | 55 Optional<uint64_t> computeThreshold(int PercentileCutoff) const; 124 bool isFunctionHotInCallGraphNthPercentile(int PercentileCutoff, 129 bool isFunctionColdInCallGraphNthPercentile(int PercentileCutoff, 138 bool isHotCountNthPercentile(int PercentileCutoff, uint64_t C) const; 141 bool isColdCountNthPercentile(int PercentileCutoff, uint64_t C) const; 148 bool isHotBlockNthPercentile(int PercentileCutoff, const BasicBlock *BB, 152 bool isColdBlockNthPercentile(int PercentileCutoff, const BasicBlock *BB, 176 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) const; 178 bool isHotOrColdCountNthPercentile(int PercentileCutoff, uint64_t C) const; 180 bool isHotOrColdBlockNthPercentile(int PercentileCutoff,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ProfileSummaryInfo.cpp | 200 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) { in isFunctionHotInCallGraphNthPercentile() argument 204 if (isHotCountNthPercentile(PercentileCutoff, FunctionCount.getCount())) in isFunctionHotInCallGraphNthPercentile() 214 if (isHotCountNthPercentile(PercentileCutoff, TotalCallCount)) in isFunctionHotInCallGraphNthPercentile() 218 if (isHotBlockNthPercentile(PercentileCutoff, &BB, &BFI)) in isFunctionHotInCallGraphNthPercentile() 263 Optional<uint64_t> ProfileSummaryInfo::computeThreshold(int PercentileCutoff) { in computeThreshold() argument 266 auto iter = ThresholdCache.find(PercentileCutoff); in computeThreshold() 272 getEntryForPercentile(DetailedSummary, PercentileCutoff); in computeThreshold() 274 ThresholdCache[PercentileCutoff] = CountThreshold; in computeThreshold() 302 bool ProfileSummaryInfo::isHotCountNthPercentile(int PercentileCutoff, uint64_t C) { in isHotCountNthPercentile() argument 303 auto CountThreshold = computeThreshold(PercentileCutoff); in isHotCountNthPercentile() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineSizeOpts.cpp | 37 static bool isHotBlockNthPercentile(int PercentileCutoff, in isHotBlockNthPercentile() argument 42 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 63 int PercentileCutoff, in isFunctionHotInCallGraphNthPercentile() argument 68 if (PSI->isHotCountNthPercentile(PercentileCutoff, in isFunctionHotInCallGraphNthPercentile() 72 if (isHotBlockNthPercentile(PercentileCutoff, &MBB, PSI, &MBFI)) in isFunctionHotInCallGraphNthPercentile()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | ProfileSummaryInfo.h | 60 Optional<uint64_t> computeThreshold(int PercentileCutoff); 120 bool isFunctionHotInCallGraphNthPercentile(int PercentileCutoff, 129 bool isHotCountNthPercentile(int PercentileCutoff, uint64_t C); 136 bool isHotBlockNthPercentile(int PercentileCutoff,
|