X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fconstraint.lisp;h=5e6162479e65af8adba667ecf33aaf953c457159;hb=6a756846fe0fe89835ec5eb68327b612c93f82c4;hp=507eaf824b12d65f2864dd1e79ea78768c60db17;hpb=a7c2a16d0c2be6709becc962be1cb5e0aeda68c6;p=sbcl.git diff --git a/src/compiler/constraint.lisp b/src/compiler/constraint.lisp index 507eaf8..5e61624 100644 --- a/src/compiler/constraint.lisp +++ b/src/compiler/constraint.lisp @@ -540,19 +540,6 @@ (when con (constrain-ref-type node con cons)))))))) -;;; Return true if VAR would have to be closed over if environment -;;; analysis ran now (i.e. if there are any uses that have a different -;;; home lambda than VAR's home.) -(defun closure-var-p (var) - (declare (type lambda-var var)) - (let ((home (lambda-home (lambda-var-home var)))) - (flet ((frob (l) - (dolist (node l nil) - (unless (eq (node-home-lambda node) home) - (return t))))) - (or (frob (leaf-refs var)) - (frob (basic-var-sets var)))))) - ;;; Give an empty constraints set to any var that doesn't have one and ;;; isn't a set closure var. Since a var that we previously rejected ;;; looks identical to one that is new, so we optimistically keep