summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-07-28 01:03:10 +0000
committerDehao Chen <dehao@google.com>2017-07-28 01:03:10 +0000
commite70a472bad63666ce16a68947352806d07294015 (patch)
treeccf1f09bbf5765dac6396cc807ec10ed87e37284 /llvm/lib
parentf4240b5b91b4b47d6f85dd20805dc08a0aae5f55 (diff)
downloadbcm5719-llvm-e70a472bad63666ce16a68947352806d07294015.tar.gz
bcm5719-llvm-e70a472bad63666ce16a68947352806d07294015.zip
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 llvm-svn: 309346
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp b/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp
index 7c16b301b47..62db61be252 100644
--- a/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp
+++ b/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp
@@ -58,7 +58,7 @@ static cl::opt<unsigned>
// Set the maximum number of targets to promote for a single indirect-call
// callsite.
static cl::opt<unsigned>
- 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"));
OpenPOWER on IntegriCloud