summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/IndirectCallPromotionAnalysis.h')
-rw-r--r--include/llvm/Analysis/IndirectCallPromotionAnalysis.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Analysis/IndirectCallPromotionAnalysis.h b/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
index 007e4d8602fa..8b1c10139de8 100644
--- a/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
+++ b/include/llvm/Analysis/IndirectCallPromotionAnalysis.h
@@ -27,10 +27,12 @@ private:
// Allocate space to read the profile annotation.
std::unique_ptr<InstrProfValueData[]> ValueDataArray;
- // Count is the call count for the direct-call target and
- // TotalCount is the call count for the indirect-call callsite.
+ // Count is the call count for the direct-call target.
+ // TotalCount is the total call count for the indirect-call callsite.
+ // RemainingCount is the TotalCount minus promoted-direct-call count.
// Return true we should promote this indirect-call target.
- bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount);
+ bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
+ uint64_t RemainingCount);
// Returns the number of profitable candidates to promote for the
// current ValueDataArray and the given \p Inst.