[PATCH] D33798: [PGO] Adjust indirect call promotion threshold

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 13:55:39 PDT 2017


tejohnson created this revision.

Reduce min percent required for indirect call promotion from 33% to 30%,
which matches gcc's threshold and catches the same hot opportunities.


https://reviews.llvm.org/D33798

Files:
  lib/Analysis/IndirectCallPromotionAnalysis.cpp


Index: lib/Analysis/IndirectCallPromotionAnalysis.cpp
===================================================================
--- lib/Analysis/IndirectCallPromotionAnalysis.cpp
+++ lib/Analysis/IndirectCallPromotionAnalysis.cpp
@@ -43,7 +43,7 @@
 // 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"));
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33798.101100.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/21103e8c/attachment.bin>


More information about the llvm-commits mailing list