]> git.sesse.net Git - stockfish/commitdiff
Remove an useless comparison in futility pruning
authorMarco Costalba <mcostalba@gmail.com>
Mon, 27 Apr 2009 08:45:15 +0000 (09:45 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 27 Apr 2009 08:45:15 +0000 (09:45 +0100)
Currently futility is allowed when depth < SelectiveDepth
and SelectiveDepth is 7*OnePly, so the comprison is
always true.

Patch could introduce a functional change only if
we choose to increase SelectiveDepth.

Currently no functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index a30776801970d1bde0502beaa8b4ca882572c03a..21a130332e4bfdf5e1626e070232bab67c0954e9 100644 (file)
@@ -1375,7 +1375,7 @@ namespace {
               continue;
 
           // Value based pruning
               continue;
 
           // Value based pruning
-          if (depth < 7 * OnePly && approximateEval < beta)
+          if (approximateEval < beta)
           {
               if (futilityValue == VALUE_NONE)
                   futilityValue =  evaluate(pos, ei, threadID)
           {
               if (futilityValue == VALUE_NONE)
                   futilityValue =  evaluate(pos, ei, threadID)