diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-12-16 15:56:04 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-12-16 17:17:23 +0100 |
commit | 13aa376e93564a8cf2ddbbcf0968c6666620db89 (patch) | |
tree | 0d3393990e9f70e050a44a9b46317e6d10308ac2 /lisp/transient.el | |
parent | 17d65c99cd812e085d85f790c83ec0d540490a55 (diff) | |
download | emacs-13aa376e93564a8cf2ddbbcf0968c6666620db89.tar.gz emacs-13aa376e93564a8cf2ddbbcf0968c6666620db89.tar.bz2 emacs-13aa376e93564a8cf2ddbbcf0968c6666620db89.zip |
Elide broken but unnecessary `if` optimisations
* lisp/emacs-lisp/byte-opt.el (byte-optimize-if):
Remove explicit clauses purposing to simplify
(if X nil t) -> (not X)
(if X t nil) -> (not (not X))
but never did so because of a coding mistake (eq instead of equal),
found by a recently added warning. They weren't actually needed
thanks to the optimiser's fixpoint iteration: we eventually get the
same results through
(if X nil t) -> (if (not X) t nil) -> (if (not X) t) -> (not X)
(if X t nil) -> (if X t) -> (not (not X))
Diffstat (limited to 'lisp/transient.el')
0 files changed, 0 insertions, 0 deletions