]> git.eshelyaron.com Git - emacs.git/commit
Strength-reduce `equal', `eql', `member' and `memql'
authorMattias Engdegård <mattiase@acm.org>
Wed, 19 Jun 2019 11:26:58 +0000 (13:26 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 28 Jun 2019 20:47:27 +0000 (22:47 +0200)
commitd8aba87a0d5ef84dfedf4c6a73884fa6dc455b24
tree122a6b6856c50059f09843f9a93b1ae30fef10d7
parentd58fc4e8ece8ccafd5ef430a57c2a8b417c8e038
Strength-reduce `equal', `eql', `member' and `memql'

When comparing against symbols, turn `equal' and `eql' into `eq',
and `member' and `memql' into `memq'.

* lisp/emacs-lisp/byte-opt.el (byte-optimize--constant-symbol-p)
(byte-optimize-equal, byte-optimize-member): New.
(member, memql, equal, eql): Use new byte-optimizers.
lisp/emacs-lisp/byte-opt.el