summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/ProfileData/ProfileCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/ProfileData/ProfileCommon.h')
-rw-r--r--llvm/include/llvm/ProfileData/ProfileCommon.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/include/llvm/ProfileData/ProfileCommon.h b/llvm/include/llvm/ProfileData/ProfileCommon.h
index a7ac78d2523..eb14369e413 100644
--- a/llvm/include/llvm/ProfileData/ProfileCommon.h
+++ b/llvm/include/llvm/ProfileData/ProfileCommon.h
@@ -185,18 +185,5 @@ SummaryEntryVector &ProfileSummary::getDetailedSummary() {
return DetailedSummary;
}
-/// Helper to compute the profile count for a block, based on the
-/// ratio of its frequency to the entry block frequency, multiplied
-/// by the entry block count.
-inline uint64_t getBlockProfileCount(uint64_t BlockFreq, uint64_t EntryFreq,
- uint64_t EntryCount) {
- APInt ScaledCount(128, EntryCount);
- APInt BlockFreqAPInt(128, BlockFreq);
- APInt EntryFreqAPInt(128, EntryFreq);
- ScaledCount *= BlockFreqAPInt;
- ScaledCount = ScaledCount.udiv(EntryFreqAPInt);
- return ScaledCount.getLimitedValue();
-}
-
} // end namespace llvm
#endif
OpenPOWER on IntegriCloud