From 76c319f4388faabcbfbe9b6d4c2e030f766e455f Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Wed, 12 Feb 2025 15:01:35 -0800 Subject: [PATCH] Simplify ttcut depth condition Simplify ttcut depth condition in a recent tweak of Nonlinear (PR #5876) Passed simplification STC LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 235328 W: 61646 L: 61644 D: 112038 Ptnml(0-2): 1039, 27947, 59676, 27977, 1025 https://tests.stockfishchess.org/tests/view/67abc7fba04df5eb8dbeb442 Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 63744 W: 16306 L: 16128 D: 31310 Ptnml(0-2): 58, 6918, 17748, 7084, 64 https://tests.stockfishchess.org/tests/view/67abd776a04df5eb8dbeb9c1 closes https://github.com/official-stockfish/Stockfish/pull/5877 Bench: 2667779 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index f292118e..da1ea349 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -671,7 +671,7 @@ Value Search::Worker::search( if (!PvNode && !excludedMove && ttData.depth > depth - (ttData.value <= beta) && is_valid(ttData.value) // Can happen when !ttHit or when access race in probe() && (ttData.bound & (ttData.value >= beta ? BOUND_LOWER : BOUND_UPPER)) - && (cutNode == (ttData.value >= beta) || (depth > 9 || (rootDepth > 10 && depth > 5)))) + && (cutNode == (ttData.value >= beta) || depth > 5)) { // If ttMove is quiet, update move sorting heuristics on TT hit if (ttData.move && ttData.value >= beta)