]> granicus.if.org Git - llvm/commitdiff
Changing the default MaxNumPromotions from 2 to 3.
authorDehao Chen <dehao@google.com>
Fri, 28 Jul 2017 01:03:10 +0000 (01:03 +0000)
committerDehao Chen <dehao@google.com>
Fri, 28 Jul 2017 01:03:10 +0000 (01:03 +0000)
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

lib/Analysis/IndirectCallPromotionAnalysis.cpp

index 7c16b301b47bd6ff6d3b38dc5f0d6d764ea587b3..62db61be252a8a7ad13083ec4ff4238a8b12fdb9 100644 (file)
@@ -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"));