}
}
- // Speculative prefetch
- prefetch((char*)TT.first_entry(pos.hash_after_move(move)));
+ // Speculative prefetch as early as possible
+ prefetch((char*)TT.first_entry(pos.key_after(move)));
// Check for legality just before making the move
if (!RootNode && !SpNode && !pos.legal(move, ci.pinned))
&& pos.see_sign(move) < VALUE_ZERO)
continue;
- // Speculative prefetch
- prefetch((char*)TT.first_entry(pos.hash_after_move(move)));
+ // Speculative prefetch as early as possible
+ prefetch((char*)TT.first_entry(pos.key_after(move)));
// Check for legality just before making the move
if (!pos.legal(move, ci.pinned))