summaryrefslogtreecommitdiff
path: root/lib/count-trailing-zeros.h
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-12-25 10:57:02 +0100
committerAndrea Corallo <akrl@sdf.org>2020-12-26 10:53:54 +0100
commit89d5a3a7603a0b096d02f58ba0a1997ad98c63ae (patch)
treef7c3cbb76ab35843db9610d536a87e7acaca9733 /lib/count-trailing-zeros.h
parentbd693ccea7ba4a6aafda103f7a9166f76363c86b (diff)
downloademacs-89d5a3a7603a0b096d02f58ba0a1997ad98c63ae.tar.gz
emacs-89d5a3a7603a0b096d02f58ba0a1997ad98c63ae.tar.bz2
emacs-89d5a3a7603a0b096d02f58ba0a1997ad98c63ae.zip
Enable integer range narrowing under compare and branch
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-cmp-range) (comp-cstr->, comp-cstr->=, comp-cstr-<, comp-cstr-<=): New functions. * lisp/emacs-lisp/comp.el (comp-equality-fun-p) (comp-range-cmp-fun-p): New functions. (comp-collect-rhs): Use `comp-assign-op-p' in place of `comp-set-op-p'. (comp-negate-range-cmp-fun, comp-reverse-cmp-fun): New functions. (comp-emit-assume): Rework to be able to emit also comparision assumption. (comp-add-cond-cstrs-simple): Update for new `comp-emit-assume'. (comp-add-cond-cstrs-simple): Update to emit range assumption. (comp-fwprop-insn): Execute range assumptions. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add tests.
Diffstat (limited to 'lib/count-trailing-zeros.h')
0 files changed, 0 insertions, 0 deletions