]> git.sesse.net Git - stockfish/commitdiff
Simplify futility pruning return value
authorajithcj <achajo@yahoo.co.in>
Sat, 8 Oct 2016 05:06:33 +0000 (05:06 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 9 Oct 2016 07:54:43 +0000 (09:54 +0200)
Return eval as it is while doing futility pruning.

STC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 167687 W: 29778 L: 29904 D: 108005

LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 26905 W: 3503 L: 3390 D: 20012

Bench: 5936728

src/search.cpp

index eae3468074d18e0ba9d4c2bea5cd0c2702292d08..112e149dc1cd7c6a297daa5b02eed7d9e009921e 100644 (file)
@@ -743,7 +743,7 @@ namespace {
         &&  eval - futility_margin(depth) >= beta
         &&  eval < VALUE_KNOWN_WIN  // Do not return unproven wins
         &&  pos.non_pawn_material(pos.side_to_move()))
-        return eval - futility_margin(depth);
+        return eval;
 
     // Step 8. Null move search with verification search (is omitted in PV nodes)
     if (   !PvNode