]> git.eshelyaron.com Git - emacs.git/commit
Improved static detection of nil and non-nil expressions
authorMattias Engdegård <mattiase@acm.org>
Fri, 12 Aug 2022 18:11:52 +0000 (20:11 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 16 Aug 2022 18:44:50 +0000 (20:44 +0200)
commit869db699ee276349b5de17b54daa4e75433075b9
treea163522c8971a32e8d0970bfdf8a1e51fa5cfe97
parent4b1ab183917b12a8ae13d6c78dd034e84429ca40
Improved static detection of nil and non-nil expressions

* lisp/emacs-lisp/byte-opt.el (byte-opt--bool-value-form): New.
(byte-compile-trueconstp, byte-compile-nilconstp): Determine a static
nil or non-nil result in more cases.  These functions have grown and
are no longer defsubst.
lisp/emacs-lisp/byte-opt.el