diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-06-26 18:46:13 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-06-26 20:43:28 +0200 |
commit | f2a5d48e89bc5611c9cc9aeb978faacee32de6c8 (patch) | |
tree | 32d6d31fd8570bfaf2c491f0c47db88ae4f1077d /lisp/emacs-lisp/memory-report.el | |
parent | d3893d7e8e20b392e531f00981191138e26d8bff (diff) | |
download | emacs-f2a5d48e89bc5611c9cc9aeb978faacee32de6c8.tar.gz emacs-f2a5d48e89bc5611c9cc9aeb978faacee32de6c8.tar.bz2 emacs-f2a5d48e89bc5611c9cc9aeb978faacee32de6c8.zip |
Optimise away functions in for-effect context
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Turn functions into nil when compiled for-effect since they have no
side-effects on their own. This may enable further improvements such
as the elimination of variable bindings.
`unwind-protect` forms can be treated as plain function call at this
point. In particular, their unwind function argument should be
not optimised for effect since it's a function.
Diffstat (limited to 'lisp/emacs-lisp/memory-report.el')
0 files changed, 0 insertions, 0 deletions