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

Moved code for determining whether named constants can be referenced directly

to LEGAL-IMMEDIATE-CONSTANT-P in LTN from IR2-CONVERT-REF, since we must pick
off potentially delayed constants there.
parent 436faec9
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.38 1991/12/12 12:41:48 wlott Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.39 1991/12/12 14:59:03 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -161,11 +161,7 @@
(vop value-cell-ref node block tn res)
(emit-move node block tn res))))
(constant
(if (or (null name)
(typecase (constant-value leaf)
((or number character) t)
(symbol (symbol-package (constant-value leaf)))
(t nil)))
(if (legal-immediate-constant-p leaf)
(emit-move node block (constant-tn leaf) res)
(let ((name-tn (emit-constant name)))
(if (policy node (zerop safety))
......
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