X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=abe7fde3226692ad6fc1f0d376f0518c2d9cfb4a;hp=f4a098d988d4e1a868d36b110b77c44d195204ff;hb=6738b65be97af10e4b5b783dc8ad21ae0faf36a8;hpb=2f1935078da225c90f7887ed8c345cc7baebcfcc diff --git a/src/position.cpp b/src/position.cpp index f4a098d9..abe7fde3 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -885,7 +885,6 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI // Update pawn hash key and prefetch in L1/L2 cache st->pawnKey ^= zobrist[us][PAWN][from] ^ zobrist[us][PAWN][to]; - prefetchPawn(st->pawnKey, threadID); // Set en passant square, only if moved pawn can be captured if ((to ^ from) == 16) @@ -938,6 +937,9 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI } } + // Prefetch pawn and material hash tables + prefetchTables(st->pawnKey, st->materialKey, threadID); + // Update incremental scores st->value += pst_delta(piece, from, to);