summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/foo-inlinable.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-08-07 18:14:42 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-08-08 11:46:18 +0200
commit89bd65197642e4700b36c270d3abf8e4a2dffbf8 (patch)
tree4a9138af3d14fa6e8c9b08b63d81d9636e270b0b /test/lisp/emacs-lisp/bytecomp-resources/foo-inlinable.el
parenteeda9eff1aa1ad973851d6589c5bcf6020a090e8 (diff)
downloademacs-89bd65197642e4700b36c270d3abf8e4a2dffbf8.tar.gz
emacs-89bd65197642e4700b36c270d3abf8e4a2dffbf8.tar.bz2
emacs-89bd65197642e4700b36c270d3abf8e4a2dffbf8.zip
Teach byte-compiler about Aristotelian identity
* lisp/emacs-lisp/byte-opt.el (byte-optimize-equal, byte-optimize-eq): Optimise (eq X X) -> t where X is a variable; idem for eql and equal. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): Add test case.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/foo-inlinable.el')
0 files changed, 0 insertions, 0 deletions