X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fpack.lisp;h=42e6c5e4c63bff6f6c18b94487fd871be917ad7e;hb=0f3a5f2e8886d18d0b4f6485c38a42be629422ae;hp=451f83e620ec3438049511c94827788cd896e107;hpb=cf96bb4253ddc05188f4a45aead5f0497339ad17;p=sbcl.git diff --git a/src/compiler/pack.lisp b/src/compiler/pack.lisp index 451f83e..42e6c5e 100644 --- a/src/compiler/pack.lisp +++ b/src/compiler/pack.lisp @@ -1375,6 +1375,15 @@ ;;;; pack interface +;; Misc. utilities +(declaim (inline unbounded-sc-p)) +(defun unbounded-sc-p (sc) + (eq (sb-kind (sc-sb sc)) :unbounded)) + +(defun unbounded-tn-p (tn) + (unbounded-sc-p (tn-sc tn))) +(declaim (notinline unbounded-sc-p)) + ;;; Attempt to pack TN in all possible SCs, first in the SC chosen by ;;; representation selection, then in the alternate SCs in the order ;;; they were specified in the SC definition. If the TN-COST is