diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-06-01 21:10:10 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-06-01 21:10:10 +0000 |
commit | 596b2e7ab2e81fa7a93450e85215066de5f80b1f (patch) | |
tree | d11644a113753a322da02ad773297a5b46551872 /llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp | |
parent | 189a811a8e1a0a12f63cb42a5a5c19675babfea2 (diff) | |
download | bcm5719-llvm-596b2e7ab2e81fa7a93450e85215066de5f80b1f.tar.gz bcm5719-llvm-596b2e7ab2e81fa7a93450e85215066de5f80b1f.zip |
[PGO] Adjust indirect call promotion threshold
Summary:
Reduce min percent required for indirect call promotion from 33% to 30%,
which matches gcc's threshold and catches the same hot opportunities.
Reviewers: davidxl
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33798
llvm-svn: 304469
Diffstat (limited to 'llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp b/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp index 3da33ac7142..ed233d20153 100644 --- a/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp +++ b/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp @@ -43,7 +43,7 @@ static cl::opt<unsigned> // The percent threshold for the direct-call target (this call site vs the // total call count) for it to be considered as the promotion target. static cl::opt<unsigned> - ICPPercentThreshold("icp-percent-threshold", cl::init(33), cl::Hidden, + ICPPercentThreshold("icp-percent-threshold", cl::init(30), cl::Hidden, cl::ZeroOrMore, cl::desc("The percentage threshold for the promotion")); |