Skip to content

Commit

Permalink
Remove redundant PvNode condition
Browse files Browse the repository at this point in the history
After commit 6d58bf7 we always call PvNodes
with cutNode set to false.

No functional change.
  • Loading branch information
ElbertoOne authored and mcostalba committed Jun 24, 2016
1 parent c94145b commit c2c0e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Expand Up @@ -549,6 +549,7 @@ namespace {
assert(-VALUE_INFINITE <= alpha && alpha < beta && beta <= VALUE_INFINITE);
assert(PvNode || (alpha == beta - 1));
assert(DEPTH_ZERO < depth && depth < DEPTH_MAX);
assert(!(PvNode && cutNode));

Move pv[MAX_PLY+1], quietsSearched[64];
StateInfo st;
Expand Down Expand Up @@ -963,7 +964,7 @@ namespace {
+ (fmh2 ? (*fmh2)[moved_piece][to_sq(move)] : VALUE_ZERO);

// Increase reduction for cut nodes
if (!PvNode && cutNode)
if (cutNode)
r += 2 * ONE_PLY;

// Decrease reduction for moves that escape a capture. Filter out
Expand Down

0 comments on commit c2c0e6b

Please sign in to comment.