]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use common_parent_position hint also at PVNodes TT hits.
[stockfish] / src / search.cpp
index 6ccc70cc673ba783bd993c124d88fc12f10a42c1..206779ed1be13ea17b278572a059cffcd229961d 100644 (file)
@@ -744,7 +744,11 @@ namespace {
         if (eval == VALUE_NONE)
             ss->staticEval = eval = evaluate(pos, &complexity);
         else // Fall back to (semi)classical complexity for TT hits, the NNUE complexity is lost
+        {
             complexity = abs(ss->staticEval - pos.psq_eg_stm());
+            if (PvNode)
+               Eval::NNUE::hint_common_parent_position(pos);
+        }
 
         // ttValue can be used as a better position evaluation (~7 Elo)
         if (    ttValue != VALUE_NONE