From de9fc53af57d1620bb913c357630e724c7ea186b Mon Sep 17 00:00:00 2001 From: silversolver1 <61594747+silversolver1@users.noreply.github.com> Date: Sun, 12 Apr 2020 22:23:04 -0500 Subject: [PATCH] Removes evasionPrunable STC: LLR: 2.95 (-2.94,2.94) {-1.50,0.50} Total: 25656 W: 4979 L: 4826 D: 15851 Ptnml(0-2): 414, 2971, 5964, 3006, 473 https://tests.stockfishchess.org/tests/view/5e93dbd72cb65b3059c33819 LTC: LLR: 2.94 (-2.94,2.94) {-1.50,0.50} Total: 43732 W: 5656 L: 5593 D: 32483 Ptnml(0-2): 324, 4072, 13009, 4139, 322 https://tests.stockfishchess.org/tests/view/5e93e37c2cb65b3059c33825 closes https://github.com/official-stockfish/Stockfish/pull/2627 Bench: 4702195 --- src/search.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 4073f21d..76011840 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1398,7 +1398,7 @@ moves_loop: // When in check, search starts from here Move ttMove, move, bestMove; Depth ttDepth; Value bestValue, value, ttValue, futilityValue, futilityBase, oldAlpha; - bool ttHit, pvHit, inCheck, givesCheck, captureOrPromotion, evasionPrunable; + bool ttHit, pvHit, inCheck, givesCheck, captureOrPromotion; int moveCount; if (PvNode) @@ -1527,14 +1527,8 @@ moves_loop: // When in check, search starts from here } } - // Detect non-capture evasions that are candidates to be pruned - evasionPrunable = inCheck - && (depth != 0 || moveCount > 2) - && bestValue > VALUE_TB_LOSS_IN_MAX_PLY - && !pos.capture(move); - // Don't search moves with negative SEE values - if ( (!inCheck || evasionPrunable) && !pos.see_ge(move)) + if ( !inCheck && !pos.see_ge(move)) continue; // Speculative prefetch as early as possible -- 2.39.2