Skip to content

Commit dbd6156

Browse files
committed
Revert previous fix
It seems to intorduce a regression when tested with 3 threads at 15+0.05: ELO: -2.26 +-2.2 (95%) LOS: 2.4% Total: 30000 W: 4813 L: 5008 D: 20179 bench: 8331357
1 parent 691ed42 commit dbd6156

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ namespace {
499499
// Step 1. Initialize node
500500
Thread* thisThread = pos.this_thread();
501501
inCheck = pos.checkers();
502-
excludedMove = ss->excludedMove;
503502

504503
if (SpNode)
505504
{
@@ -508,7 +507,7 @@ namespace {
508507
threatMove = splitPoint->threatMove;
509508
bestValue = splitPoint->bestValue;
510509
tte = NULL;
511-
ttMove = MOVE_NONE;
510+
ttMove = excludedMove = MOVE_NONE;
512511
ttValue = VALUE_NONE;
513512

514513
assert(splitPoint->bestValue > -VALUE_INFINITE && splitPoint->moveCount > 0);
@@ -548,6 +547,7 @@ namespace {
548547
// Step 4. Transposition table lookup
549548
// We don't want the score of a partial search to overwrite a previous full search
550549
// TT value, so we use a different position key in case of an excluded move.
550+
excludedMove = ss->excludedMove;
551551
posKey = excludedMove ? pos.exclusion_key() : pos.key();
552552
tte = TT.probe(posKey);
553553
ttMove = RootNode ? RootMoves[PVIdx].pv[0] : tte ? tte->move() : MOVE_NONE;

0 commit comments

Comments
 (0)