aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-06-21 16:56:12 +0200
committerMattias EngdegÄrd2023-06-21 18:00:26 +0200
commit195ca6b9a37511e2681e75a35781074b16101a42 (patch)
tree47d04548d7a2ffcc67543382a426c42ae4ae3907 /java
parent6b9510d94f814cacf43793dce76250b5f7e6f64a (diff)
downloademacs-195ca6b9a37511e2681e75a35781074b16101a42.tar.gz
emacs-195ca6b9a37511e2681e75a35781074b16101a42.zip
Don't compile (+ X 0) as (* X 1)
Previously (+ X 0) was reduced to (+ X) which became (* X 1) in codegen, but this is wrong for X = -0.0 and also slightly slower. * lisp/emacs-lisp/byte-opt.el (byte-optimize-plus): Don't reduce an addition to (+ X) by eliminating zeros; retain one 0 argument. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): Add test case.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions