From: Dehao Chen Date: Fri, 28 Jul 2017 01:03:10 +0000 (+0000) Subject: Changing the default MaxNumPromotions from 2 to 3. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e66379c807afdbcfa9258c60726adbc2d842e5d;p=llvm Changing the default MaxNumPromotions from 2 to 3. Summary: In performance tuning, we see performance benefits when enlarge the maximum num promotion targets to 3. This is safe as soon as we have total percentage threshold properly setup (https://reviews.llvm.org/D35962) Reviewers: davidxl, tejohnson Reviewed By: tejohnson Subscribers: llvm-commits, sanjoy Differential Revision: https://reviews.llvm.org/D35966 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309346 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/IndirectCallPromotionAnalysis.cpp b/lib/Analysis/IndirectCallPromotionAnalysis.cpp index 7c16b301b47..62db61be252 100644 --- a/lib/Analysis/IndirectCallPromotionAnalysis.cpp +++ b/lib/Analysis/IndirectCallPromotionAnalysis.cpp @@ -58,7 +58,7 @@ static cl::opt // Set the maximum number of targets to promote for a single indirect-call // callsite. static cl::opt - MaxNumPromotions("icp-max-prom", cl::init(2), cl::Hidden, cl::ZeroOrMore, + MaxNumPromotions("icp-max-prom", cl::init(3), cl::Hidden, cl::ZeroOrMore, cl::desc("Max number of promotions for a single indirect " "call callsite"));