[llvm] r304469 - [PGO] Adjust indirect call promotion threshold

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:10:10 PDT 2017


Author: tejohnson
Date: Thu Jun  1 16:10:10 2017
New Revision: 304469

URL: http://llvm.org/viewvc/llvm-project?rev=304469&view=rev
Log:
[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

Modified:
    llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp?rev=304469&r1=304468&r2=304469&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp Thu Jun  1 16:10:10 2017
@@ -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"));
 




More information about the llvm-commits mailing list