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

Deleted unnecessary special-casing of LET calls and bind nodes in DELETE-BLOCK.

Deletion of the REF should suffice, and will avoid problems with deleting
twice.
parent f1d450d1
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.52 1992/02/23 17:41:45 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.53 1992/04/09 20:06:52 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -1047,23 +1047,11 @@ ...@@ -1047,23 +1047,11 @@
(typecase node (typecase node
(ref (delete-ref node)) (ref (delete-ref node))
(basic-combination (basic-combination
(when (and (eq (basic-combination-kind node) :local)
;; Not already deleted...
(continuation-use (basic-combination-fun node)))
(let ((fun (combination-lambda node)))
(when (member (functional-kind fun) '(:let :mv-let :assignment))
(delete-lambda fun))))
(flush-dest (basic-combination-fun node)) (flush-dest (basic-combination-fun node))
(dolist (arg (basic-combination-args node)) (dolist (arg (basic-combination-args node))
(when arg (flush-dest arg)))) (when arg (flush-dest arg))))
(cif (cif
(flush-dest (if-test node))) (flush-dest (if-test node)))
(bind
(let ((lambda (bind-lambda node)))
(unless (eq (functional-kind lambda) :deleted)
(assert (member (functional-kind lambda)
'(:let :mv-let :assignment)))
(delete-lambda lambda))))
(exit (exit
(let ((value (exit-value node)) (let ((value (exit-value node))
(entry (exit-entry node))) (entry (exit-entry node)))
......
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