mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
Stack allocate NNUE buffer
Passed simp STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 29632 W: 7772 L: 7552 D: 14308 Ptnml(0-2): 76, 3155, 8147, 3349, Id expect there to be a small speedup (bc the compiler can skip some stores) but i haven’t tried to measure it closes https://github.com/official-stockfish/Stockfish/pull/6688 No functional change
This commit is contained in:
+3
-5
@@ -2035,9 +2035,8 @@ void syzygy_extend_pv(const OptionsMap& options,
|
||||
for (const auto& m : MoveList<LEGAL>(pos))
|
||||
legalMoves.emplace_back(m);
|
||||
|
||||
TB::Config config =
|
||||
TB::rank_root_moves(options, pos, legalMoves, false, time_abort);
|
||||
RootMove& rm = *std::find(legalMoves.begin(), legalMoves.end(), pvMove);
|
||||
TB::Config config = TB::rank_root_moves(options, pos, legalMoves, false, time_abort);
|
||||
RootMove& rm = *std::find(legalMoves.begin(), legalMoves.end(), pvMove);
|
||||
|
||||
if (legalMoves[0].tbRank != rm.tbRank)
|
||||
break;
|
||||
@@ -2096,8 +2095,7 @@ void syzygy_extend_pv(const OptionsMap& options,
|
||||
[](const Search::RootMove& a, const Search::RootMove& b) { return a.tbRank > b.tbRank; });
|
||||
|
||||
// The winning side tries to minimize DTZ, the losing side maximizes it
|
||||
TB::Config config =
|
||||
TB::rank_root_moves(options, pos, legalMoves, true, time_abort);
|
||||
TB::Config config = TB::rank_root_moves(options, pos, legalMoves, true, time_abort);
|
||||
|
||||
// If DTZ is not available we might not find a mate, so we bail out
|
||||
if (!config.rootInTB || config.cardinality > 0)
|
||||
|
||||
Reference in New Issue
Block a user