[llvm] r248801 - [ValueTracking] Lower dom-conditions-dom-blocks and dom-conditions-max-uses thresholds

Igor Laevsky via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 07:57:52 PDT 2015


Author: igor.laevsky
Date: Tue Sep 29 09:57:52 2015
New Revision: 248801

URL: http://llvm.org/viewvc/llvm-project?rev=248801&view=rev
Log:
[ValueTracking] Lower dom-conditions-dom-blocks and dom-conditions-max-uses thresholds

On some of our benchmarks this change shows about 50% compile time improvement without any noticeable performance difference.

Differential Revision: http://reviews.llvm.org/D13248


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

Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=248801&r1=248800&r2=248801&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Tue Sep 29 09:57:52 2015
@@ -58,12 +58,12 @@ static cl::opt<unsigned> DomConditionsMa
 /// conditions?
 static cl::opt<unsigned> DomConditionsMaxDomBlocks("dom-conditions-dom-blocks",
                                                    cl::Hidden,
-                                                   cl::init(20000));
+                                                   cl::init(20));
 
 // Controls the number of uses of the value searched for possible
 // dominating comparisons.
 static cl::opt<unsigned> DomConditionsMaxUses("dom-conditions-max-uses",
-                                              cl::Hidden, cl::init(2000));
+                                              cl::Hidden, cl::init(20));
 
 // If true, don't consider only compares whose only use is a branch.
 static cl::opt<bool> DomConditionsSingleCmpUse("dom-conditions-single-cmp-use",




More information about the llvm-commits mailing list