diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-07-30 12:22:01 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-07-30 14:37:38 +0200 |
commit | f472dd8ea5d94f0231bb7bf23552895c3ab19689 (patch) | |
tree | ab58ca7f73794d4305c52050a46a852c8358e3eb /lisp/emacs-lisp/byte-run.el | |
parent | 16876744d44b07ab9486fcea388254b9b8f617a5 (diff) | |
download | emacs-f472dd8ea5d94f0231bb7bf23552895c3ab19689.tar.gz emacs-f472dd8ea5d94f0231bb7bf23552895c3ab19689.tar.bz2 emacs-f472dd8ea5d94f0231bb7bf23552895c3ab19689.zip |
Simplify lexical let-optimisations
Ensure in cconv that let-bindings have the normal form (VAR EXPR)
where VAR is a valid variable name, so that we don't need to keep
re-checking this all the time in the optimiser.
* lisp/emacs-lisp/byte-opt.el
(byte-optimize-enable-variable-constprop)
(byte-optimize-warn-eliminated-variable): Remove; these were mainly
used for debugging.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-let-form):
Assume normalised let-bindings (with lexical-binding).
Stop using the variables removed above.
* lisp/emacs-lisp/cconv.el (cconv-convert): Ensure normalised
let-bindings. Malformed bindings are dropped after warning.
remove byte-optimize-warn-eliminated-variable
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
0 files changed, 0 insertions, 0 deletions