]> git.sesse.net Git - stockfish/commit
Remove unnecessary assignments related to adjusted static evaluation
authorGoldenRare <deshawnmohan@hotmail.com>
Tue, 6 Feb 2024 10:45:52 +0000 (05:45 -0500)
committerDisservin <disservin.social@gmail.com>
Sun, 11 Feb 2024 18:46:55 +0000 (19:46 +0100)
commit3d5b16df7c2125ba52a25b3d4b69fc1261c4eb80
tree8c0a3707f6c0f37254c42f13a63321ea6b7ad2f5
parent21dff6c2765d075a4e109e5dda98b7bf5af2cec9
Remove unnecessary assignments related to adjusted static evaluation

In both search and qsearch, there are instances
where we do unadjustedStaticEval = ss->staticEval
= eval/bestValue = tte->eval(), but immediately
after re-assign ss-static and eval/bestValue to
some new value, which makes the initial assignment
redundant.

closes https://github.com/official-stockfish/Stockfish/pull/5045

No functional change
src/search.cpp