From: ajithcj Date: Sat, 8 Oct 2016 05:06:33 +0000 (+0000) Subject: Simplify futility pruning return value X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f799610d4bb48bc280ea7f58cd5f78ab21028bf5 Simplify futility pruning return value 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 --- diff --git a/src/search.cpp b/src/search.cpp index eae34680..112e149d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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