diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-05-22 12:36:03 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-06-19 11:20:59 +0200 |
commit | 14a81524c27ab54850e0fda736e4ee0c92e447b5 (patch) | |
tree | 07dae25c695381ab4dc7c5fe70543276b90ace82 /lisp/emacs-lisp/rmc.el | |
parent | b8c74742c0238fe15b1cdc9a7f6ee021d038368f (diff) | |
download | emacs-14a81524c27ab54850e0fda736e4ee0c92e447b5.tar.gz emacs-14a81524c27ab54850e0fda736e4ee0c92e447b5.tar.bz2 emacs-14a81524c27ab54850e0fda736e4ee0c92e447b5.zip |
Compile cond with heterogeneous tests into switch (bug#36139)
Allow any mixture of `eq', `eql' and `equal', `memq', `memql' and
`member' in a switch-like `cond' to be compiled into a single switch.
* lisp/emacs-lisp/bytecomp.el (byte-compile--common-test): New.
(byte-compile-cond-jump-table-info): Use most specific common test.
* test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data):
Add test cases for multi-value clause cond forms.
Diffstat (limited to 'lisp/emacs-lisp/rmc.el')
0 files changed, 0 insertions, 0 deletions