]> git.eshelyaron.com Git - emacs.git/commit
Optimise (cond) => nil at source level
authorMattias Engdegård <mattiase@acm.org>
Tue, 2 Nov 2021 13:48:55 +0000 (14:48 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 2 Nov 2021 21:46:20 +0000 (22:46 +0100)
commit493fde95bed6c65e049b8e664837397546847b37
tree1ec80cf28953b9ff84116f2e55c78b55add185e2
parent11702a6dd7cb8286f28b7cb986057d2d2c66a914
Optimise (cond) => nil at source level

* lisp/emacs-lisp/byte-opt.el (byte-optimize-cond):
Optimise clause-free `cond`, which can arise from earlier
transformations.  This enables further optimisations.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.
lisp/emacs-lisp/byte-opt.el
test/lisp/emacs-lisp/bytecomp-tests.el