Skip to content
Snippets Groups Projects
Commit cb0039e4 authored by ram's avatar ram
Browse files

Added setting of COMPONENT-REANALYZE all places where we do UNLINK-BLOCKS and

might create dead code.
parent 11b9826b
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.55 1992/06/02 00:35:25 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.56 1992/06/03 20:04:29 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -461,6 +461,7 @@ ...@@ -461,6 +461,7 @@
(defun change-block-successor (block old new) (defun change-block-successor (block old new)
(declare (type cblock new old block)) (declare (type cblock new old block))
(unlink-blocks block old) (unlink-blocks block old)
(setf (component-reanalyze (block-component block)) t)
(unless (member new (block-succ block)) (unless (member new (block-succ block))
(link-blocks block new)) (link-blocks block new))
...@@ -892,6 +893,7 @@ ...@@ -892,6 +893,7 @@
(declare (type cblock block)) (declare (type cblock block))
(unless (block-delete-p block) (unless (block-delete-p block)
(setf (block-delete-p block) t) (setf (block-delete-p block) t)
(setf (component-reanalyze (block-component block)) t)
(dolist (pred (block-pred block)) (dolist (pred (block-pred block))
(mark-for-deletion pred))) (mark-for-deletion pred)))
(undefined-value)) (undefined-value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment