From 5f290352cd91beb9374671f6ae489165bd8ac2c0 Mon Sep 17 00:00:00 2001 From: Michael Chaly Date: Mon, 15 Aug 2022 08:52:55 +0300 Subject: [PATCH] Simplify away smp adjustment in TT use Passed STC https://tests.stockfishchess.org/tests/view/62f7d81f23d42b50a8dab568 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 98160 W: 26307 L: 26165 D: 45688 Ptnml(0-2): 201, 10282, 27960, 10448, 189 Passed LTC https://tests.stockfishchess.org/tests/view/62f8d1a623d42b50a8dad4fb LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 81544 W: 22346 L: 22200 D: 36998 Ptnml(0-2): 44, 7542, 25446, 7704, 36 closes https://github.com/official-stockfish/Stockfish/pull/4131 No functional change (single threaded). --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 7244b8d6..6d78403f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -636,7 +636,7 @@ namespace { // At non-PV nodes we check for an early TT cutoff if ( !PvNode && ss->ttHit - && tte->depth() > depth - ((int)thisThread->id() & 0x1) - (tte->bound() == BOUND_EXACT) + && tte->depth() > depth - (tte->bound() == BOUND_EXACT) && ttValue != VALUE_NONE // Possible in case of TT access race && (tte->bound() & (ttValue >= beta ? BOUND_LOWER : BOUND_UPPER))) { -- 2.39.2