]> granicus.if.org Git - llvm/commitdiff
[PGO] Adjust indirect call promotion threshold
authorTeresa Johnson <tejohnson@google.com>
Thu, 1 Jun 2017 21:10:10 +0000 (21:10 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 1 Jun 2017 21:10:10 +0000 (21:10 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304469 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IndirectCallPromotionAnalysis.cpp

index 3da33ac71421e2bfb2cc029096b6f4c0fedbec84..ed233d201537f61d80cf7163d7509a0feece6961 100644 (file)
@@ -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"));