]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify away futility pruning for captures
[stockfish] / src / search.cpp
index c7343ce8002ccd4aff7fcc41d8f9dce346efe6df..eaa79fb92bffe836472c6382d63daac2f10aa7ab 100644 (file)
@@ -1049,15 +1049,6 @@ moves_loop: // When in check, search starts from here
                   && captureHistory[movedPiece][to_sq(move)][type_of(pos.piece_on(to_sq(move)))] < 0)
                   continue;
 
-              // Futility pruning for captures
-              if (   !givesCheck
-                  && lmrDepth < 6
-                  && !(PvNode && abs(bestValue) < 2)
-                  && !ss->inCheck
-                  && ss->staticEval + 169 + 244 * lmrDepth
-                     + PieceValue[MG][type_of(pos.piece_on(to_sq(move)))] <= alpha)
-                  continue;
-
               // See based pruning
               if (!pos.see_ge(move, Value(-221) * depth)) // (~25 Elo)
                   continue;