mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Simplify pvHit (#1953)
Removing unnecessary excludedMove condition (there is not excluded move for PvNodes) and re-ordering computation. Non functional change.
This commit is contained in:
parent
691a287bfe
commit
59b2486bc3
1 changed files with 1 additions and 6 deletions
|
@ -640,7 +640,7 @@ namespace {
|
||||||
ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
|
ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
|
||||||
ttMove = rootNode ? thisThread->rootMoves[thisThread->pvIdx].pv[0]
|
ttMove = rootNode ? thisThread->rootMoves[thisThread->pvIdx].pv[0]
|
||||||
: ttHit ? tte->move() : MOVE_NONE;
|
: 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
|
// At non-PV nodes we check for an early TT cutoff
|
||||||
if ( !PvNode
|
if ( !PvNode
|
||||||
|
@ -674,11 +674,6 @@ namespace {
|
||||||
return ttValue;
|
return ttValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( depth > 4 * ONE_PLY
|
|
||||||
&& !excludedMove
|
|
||||||
&& PvNode)
|
|
||||||
pvHit = true;
|
|
||||||
|
|
||||||
// Step 5. Tablebases probe
|
// Step 5. Tablebases probe
|
||||||
if (!rootNode && TB::Cardinality)
|
if (!rootNode && TB::Cardinality)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue