Remove prefetching in Position::do_null_move

Passed non-regression STC, Hash=16:

LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 60704 W: 15709 L: 15522 D: 29473
Ptnml(0-2): 169, 6589, 16649, 6776, 169
https://tests.stockfishchess.org/tests/view/6963d381f6d2e8deff76918f

Passed non-regression STC SMP, Hash=512:

LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 313512 W: 80151 L: 80231 D: 153130
Ptnml(0-2): 376, 35492, 85111, 35390, 387
https://tests.stockfishchess.org/tests/view/696e1684e5a70879bd3fe38f

closes https://github.com/official-stockfish/Stockfish/pull/6545

No functional change
This commit is contained in:
Jakub Ciolek
2026-02-08 15:22:06 +01:00
committed by Disservin
parent e3a5c40f05
commit 73475b198d
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -1211,7 +1211,7 @@ void Position::do_castling(Color us,
// Used to do a "null move": it flips // Used to do a "null move": it flips
// the side to move without executing any move on the board. // the side to move without executing any move on the board.
void Position::do_null_move(StateInfo& newSt, const TranspositionTable& tt) { void Position::do_null_move(StateInfo& newSt) {
assert(!checkers()); assert(!checkers());
assert(&newSt != st); assert(&newSt != st);
@@ -1228,7 +1228,6 @@ void Position::do_null_move(StateInfo& newSt, const TranspositionTable& tt) {
} }
st->key ^= Zobrist::side; st->key ^= Zobrist::side;
prefetch(tt.first_entry(key()));
st->pliesFromNull = 0; st->pliesFromNull = 0;
+1 -1
View File
@@ -143,7 +143,7 @@ class Position {
const TranspositionTable* tt, const TranspositionTable* tt,
const SharedHistories* worker); const SharedHistories* worker);
void undo_move(Move m); void undo_move(Move m);
void do_null_move(StateInfo& newSt, const TranspositionTable& tt); void do_null_move(StateInfo& newSt);
void undo_null_move(); void undo_null_move();
// Static Exchange Evaluation // Static Exchange Evaluation
+1 -1
View File
@@ -569,7 +569,7 @@ void Search::Worker::do_move(
} }
void Search::Worker::do_null_move(Position& pos, StateInfo& st, Stack* const ss) { void Search::Worker::do_null_move(Position& pos, StateInfo& st, Stack* const ss) {
pos.do_null_move(st, tt); pos.do_null_move(st);
ss->currentMove = Move::null(); ss->currentMove = Move::null();
ss->continuationHistory = &continuationHistory[0][0][NO_PIECE][0]; ss->continuationHistory = &continuationHistory[0][0][NO_PIECE][0];
ss->continuationCorrectionHistory = &continuationCorrectionHistory[NO_PIECE][0]; ss->continuationCorrectionHistory = &continuationCorrectionHistory[NO_PIECE][0];