mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 16:20:17 -08:00
Use `length=' and family where possible in native comp code
* lisp/emacs-lisp/comp-cstr.el (comp-intersect-typesets) (comp-cstr-imm): Use Use `length=' and family where possible. * lisp/emacs-lisp/comp.el (comp-add-cond-cstrs-target-block) (comp-compute-dominator-frontiers) (batch-byte-native-compile-for-bootstrap): Likewise.
This commit is contained in:
parent
dcf2be6971
commit
9809f7ed2c
2 changed files with 5 additions and 5 deletions
|
|
@ -287,7 +287,7 @@ Return them as multiple value."
|
|||
(defun comp-intersect-typesets (&rest typesets)
|
||||
"Intersect types present into TYPESETS."
|
||||
(unless (cl-some #'null typesets)
|
||||
(if (= (length typesets) 1)
|
||||
(if (length= typesets 1)
|
||||
(car typesets)
|
||||
(comp-normalize-typeset
|
||||
(cl-reduce #'comp-intersect-two-typesets typesets)))))
|
||||
|
|
@ -823,7 +823,7 @@ Non memoized version of `comp-cstr-intersection-no-mem'."
|
|||
(valset ,cstr) (list ,val)))))))
|
||||
(with-comp-cstr-accessors
|
||||
(let ((v (valset cstr)))
|
||||
(if (= (length v) 1)
|
||||
(if (length= v 1)
|
||||
(car v)
|
||||
(caar (range cstr))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue