Skip to content

Commit

Permalink
Revert "Prefetch earlier in qsearch()"
Browse files Browse the repository at this point in the history
This reverts commit b73016b.

No functional change

Closes #1144
  • Loading branch information
zamar committed Jun 21, 2017
1 parent 3cb0200 commit 336901f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search.cpp
Expand Up @@ -1262,9 +1262,6 @@ namespace {
{
assert(is_ok(move));

// Speculative prefetch as early as possible
prefetch(TT.first_entry(pos.key_after(move)));

givesCheck = type_of(move) == NORMAL && !pos.discovered_check_candidates()
? pos.check_squares(type_of(pos.piece_on(from_sq(move)))) & to_sq(move)
: pos.gives_check(move);
Expand Down Expand Up @@ -1306,6 +1303,9 @@ namespace {
&& !pos.see_ge(move))
continue;

// Speculative prefetch as early as possible
prefetch(TT.first_entry(pos.key_after(move)));

// Check for legality just before making the move
if (!pos.legal(move))
{
Expand Down

0 comments on commit 336901f

Please sign in to comment.