]> git.sesse.net Git - stockfish/commitdiff
Speed up picking of killers
authorMarco Costalba <mcostalba@gmail.com>
Fri, 25 Apr 2014 10:53:51 +0000 (12:53 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 25 Apr 2014 10:53:51 +0000 (12:53 +0200)
Changing the order of the conditions gives
about 1% speed up!

No functional change.

src/movepick.cpp

index 0c61c30c07ef937e75bfc7af63c8d2e6343d6751..3f0837d94db2f1d95843a65a6244a38df998909d 100644 (file)
@@ -328,8 +328,8 @@ Move MovePicker::next_move<false>() {
       case KILLERS_S1:
           move = (cur++)->move;
           if (    move != MOVE_NONE
-              &&  pos.pseudo_legal(move)
               &&  move != ttMove
+              &&  pos.pseudo_legal(move)
               && !pos.capture(move))
               return move;
           break;