summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/crm.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-07-29 10:07:26 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-07-30 09:54:29 +0200
commitdc9e2a1749c892cdf52a01414bee97e9a2245ca5 (patch)
treea9b13c9ca71f5b5d5f10891e2bd17cdd589cddb0 /lisp/emacs-lisp/crm.el
parent9a6333811441a32e49bfd33c14f77680402cd639 (diff)
downloademacs-dc9e2a1749c892cdf52a01414bee97e9a2245ca5.tar.gz
emacs-dc9e2a1749c892cdf52a01414bee97e9a2245ca5.tar.bz2
emacs-dc9e2a1749c892cdf52a01414bee97e9a2245ca5.zip
Optimise prog1 better
Rewrite (prog1 CONST FORMS...) => (progn FORMS... CONST) where CONST is a compile-time constant, because putting the value last allows the lapcode peephole pass to do important improvements like branch elimination. Also use progn instead of prog1 for `ignore`. * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): New `prog1` and `ignore` transforms.
Diffstat (limited to 'lisp/emacs-lisp/crm.el')
0 files changed, 0 insertions, 0 deletions