[PATCH] D13248: [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:40:30 PDT 2015


igor-laevsky created this revision.
igor-laevsky added reviewers: reames, apilipenko.
igor-laevsky added a subscriber: llvm-commits.

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

http://reviews.llvm.org/D13248

Files:
  lib/Analysis/ValueTracking.cpp

Index: lib/Analysis/ValueTracking.cpp
===================================================================
--- lib/Analysis/ValueTracking.cpp
+++ lib/Analysis/ValueTracking.cpp
@@ -58,12 +58,12 @@
 /// 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",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13248.35975.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150929/6ebe9e60/attachment.bin>


More information about the llvm-commits mailing list