1
0
Fork 0

Simplify pvHit (#1953)

Removing unnecessary excludedMove condition (there is not excluded move for PvNodes) and re-ordering computation.

Non functional change.
pull/1899/head
marotear 2019-01-20 03:24:03 -08:00 committed by Marco Costalba
parent 691a287bfe
commit 59b2486bc3
1 changed files with 1 additions and 6 deletions

View File

@ -640,7 +640,7 @@ namespace {
ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
ttMove = rootNode ? thisThread->rootMoves[thisThread->pvIdx].pv[0]
: ttHit ? tte->move() : MOVE_NONE;
pvHit = ttHit && tte->pv_hit();
pvHit = (ttHit && tte->pv_hit()) || (PvNode && depth > 4 * ONE_PLY);
// At non-PV nodes we check for an early TT cutoff
if ( !PvNode
@ -674,11 +674,6 @@ namespace {
return ttValue;
}
if ( depth > 4 * ONE_PLY
&& !excludedMove
&& PvNode)
pvHit = true;
// Step 5. Tablebases probe
if (!rootNode && TB::Cardinality)
{