mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
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
This commit is contained in:
@@ -499,7 +499,6 @@ namespace {
|
||||
// Step 1. Initialize node
|
||||
Thread* thisThread = pos.this_thread();
|
||||
inCheck = pos.checkers();
|
||||
excludedMove = ss->excludedMove;
|
||||
|
||||
if (SpNode)
|
||||
{
|
||||
@@ -508,7 +507,7 @@ namespace {
|
||||
threatMove = splitPoint->threatMove;
|
||||
bestValue = splitPoint->bestValue;
|
||||
tte = NULL;
|
||||
ttMove = MOVE_NONE;
|
||||
ttMove = excludedMove = MOVE_NONE;
|
||||
ttValue = VALUE_NONE;
|
||||
|
||||
assert(splitPoint->bestValue > -VALUE_INFINITE && splitPoint->moveCount > 0);
|
||||
@@ -548,6 +547,7 @@ namespace {
|
||||
// Step 4. Transposition table lookup
|
||||
// We don't want the score of a partial search to overwrite a previous full search
|
||||
// TT value, so we use a different position key in case of an excluded move.
|
||||
excludedMove = ss->excludedMove;
|
||||
posKey = excludedMove ? pos.exclusion_key() : pos.key();
|
||||
tte = TT.probe(posKey);
|
||||
ttMove = RootNode ? RootMoves[PVIdx].pv[0] : tte ? tte->move() : MOVE_NONE;
|
||||
|
||||
Reference in New Issue
Block a user