]> git.sesse.net Git - stockfish/commitdiff
LMR Root Node Simplification
authorVoyagerOne <excelgeek@gmail.com>
Sun, 30 Aug 2020 17:57:57 +0000 (13:57 -0400)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 1 Sep 2020 07:31:40 +0000 (09:31 +0200)
Simplify LMR at Root node

STC:
LLR: 2.94 (-2.94,2.94) {-1.25,0.25}
Total: 71520 W: 7649 L: 7614 D: 56257
Ptnml(0-2): 346, 5845, 23349, 5868, 352
https://tests.stockfishchess.org/tests/view/5f4be8c0ba100690c5cc5cbb

LTC:
LLR: 2.95 (-2.94,2.94) {-0.75,0.25}
Total: 74832 W: 3997 L: 3948 D: 66887
Ptnml(0-2): 77, 3422, 30362, 3485, 70
https://tests.stockfishchess.org/tests/view/5f4c603eba100690c5cc5d0e

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

Bench: 3624569

src/search.cpp
src/thread.cpp
src/thread.h

index c15cd7537e6a8589160842f596a735b1f377317a..b79fa6beaf894a5c9b15c7ced60ed14492aeabc4 100644 (file)
@@ -1160,7 +1160,6 @@ moves_loop: // When in check, search starts from here
       // re-searched at full depth.
       if (    depth >= 3
           &&  moveCount > 1 + 2 * rootNode + 2 * (PvNode && abs(bestValue) < 2)
-          && (!rootNode || thisThread->best_move_count(move) == 0)
           && (  !captureOrPromotion
               || moveCountPruning
               || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
index 1aa66a816619549c60f76f38cf8b030e0828a48d..b46fce5e873933494031eade0330582b48003e11 100644 (file)
@@ -51,17 +51,6 @@ Thread::~Thread() {
 }
 
 
-/// Thread::bestMoveCount(Move move) return best move counter for the given root move
-
-int Thread::best_move_count(Move move) const {
-
-  auto rm = std::find(rootMoves.begin() + pvIdx,
-                      rootMoves.begin() + pvLast, move);
-
-  return rm != rootMoves.begin() + pvLast ? rm->bestMoveCount : 0;
-}
-
-
 /// Thread::clear() reset histories, usually before a new game
 
 void Thread::clear() {
index 042bc2e9231588d5db2bd1fc4b5a097658df6399..34b99015bacec71f2cd6e188d84b658d07c5a3ec 100644 (file)
@@ -54,7 +54,6 @@ public:
   void idle_loop();
   void start_searching();
   void wait_for_search_finished();
-  int best_move_count(Move move) const;
 
   Pawns::Table pawnsTable;
   Material::Table materialTable;