From 5a73c1999193a122a4bad9f0b7421daa363e14be Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Wed, 4 Apr 1990 21:59:15 +0000
Subject: [PATCH] Rob fixed something to do with environment TNs not being
 considered live at the right time.

---
 compiler/pack.lisp | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/compiler/pack.lisp b/compiler/pack.lisp
index a7af596c3..7cb5f4896 100644
--- a/compiler/pack.lisp
+++ b/compiler/pack.lisp
@@ -587,15 +587,10 @@
     (when (eq (sb-kind sb) :finite)
       (fill (finite-sb-live-tns sb) nil)))
 
-  (let ((live (ir2-block-live-in block)))  
-    (do ((conf (ir2-block-global-tns block) (global-conflicts-next conf)))
-	((null conf))
-      (when (or (eq (global-conflicts-kind conf) :live)
-		(/= (sbit live (global-conflicts-number conf)) 0))
-	(let* ((tn (global-conflicts-tn conf))
-	       (sb (sc-sb (tn-sc tn))))
-	  (when (eq (sb-kind sb) :finite)
-	    (setf (svref (finite-sb-live-tns sb) (tn-offset tn)) tn))))))
+  (do-live-tns (tn (ir2-block-live-in block) block)
+    (let ((sb (sc-sb (tn-sc tn))))
+      (when (eq (sb-kind sb) :finite)
+	(setf (svref (finite-sb-live-tns sb) (tn-offset tn)) tn))))
 
   (setq *live-block* block)
   (setq *live-vop* (ir2-block-last-vop block))
-- 
GitLab