From d5271af0ee28cb52e1033f183f3b34754aa5efa0 Mon Sep 17 00:00:00 2001 From: Giacomo Lorenzetti Date: Wed, 5 Oct 2022 13:08:00 +0200 Subject: [PATCH] Remove old line in "Futility pruning for captures" The line is no longer needed after https://github.com/official-stockfish/Stockfish/commit/910cf8b21839eb9f1991934a5436eea112021723. This patch incidentally applies "Futility Pruning for Captures" also in case of en-passant, changing the bench signature. Passed STC: https://tests.stockfishchess.org/tests/view/6332c1f1208c26088697b731 LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 68760 W: 18440 L: 18256 D: 32064 Ptnml(0-2): 267, 7530, 18595, 7728, 260 Passed LTC: https://tests.stockfishchess.org/tests/view/633312e9208c26088697c59b LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 455552 W: 121910 L: 122123 D: 211519 Ptnml(0-2): 253, 45439, 136600, 45236, 248 closes https://github.com/official-stockfish/Stockfish/pull/4185 Bench: 4374521 --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 4b6b497a..7019635d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1002,8 +1002,7 @@ moves_loop: // When in check, search starts here || givesCheck) { // Futility pruning for captures (~0 Elo) - if ( !pos.empty(to_sq(move)) - && !givesCheck + if ( !givesCheck && !PvNode && lmrDepth < 7 && !ss->inCheck