From 2b62c4452db5a02c5ed7d4a2b4c4cb1529fb82b7 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Tue, 23 Jan 2024 13:39:06 +0300 Subject: [PATCH] Remove redundant max operation on lmrDepth Removed a restriction that prohibited history heuristics sum in futility pruning to exceed some negative value. Passed STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 279040 W: 71095 L: 71143 D: 136802 Ptnml(0-2): 949, 33574, 70474, 33622, 901 https://tests.stockfishchess.org/tests/view/65aaef4c79aa8af82b977631 Passed LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 75156 W: 18884 L: 18715 D: 37557 Ptnml(0-2): 52, 8445, 20408, 8628, 45 https://tests.stockfishchess.org/tests/view/65ae7ef3c865510db026abf5 closes https://github.com/official-stockfish/Stockfish/pull/5004 Bench: 1566543 --- src/search.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index a22df12c..f5395f98 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1032,7 +1032,6 @@ moves_loop: // When in check, search starts here history += 69 * thisThread->mainHistory[us][move.from_to()] / 32; lmrDepth += history / 6992; - lmrDepth = std::max(lmrDepth, -1); // Futility pruning: parent node (~13 Elo) if (!ss->inCheck && lmrDepth < 15