Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
534283c0
Commit
534283c0
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed TN-IS-COPY-OF some more.
parent
ad5f2d19
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/copyprop.lisp
+12
-14
12 additions, 14 deletions
compiler/copyprop.lisp
with
12 additions
and
14 deletions
compiler/copyprop.lisp
+
12
−
14
View file @
534283c0
...
...
@@ -61,14 +61,16 @@
;;; A TN is also inelegible if it has interned name, policy is such that we
;;; would dump it in the debug vars, and speed is not 3.
;;;
;;; The SCs of the TNs primitive types intersect. Moves between TNs of
;;; different primitive type SCs may need to be changed into coercions, so we
;;; can't squeeze them out. The reason for testing for intersection of the SCs
;;; instead of the same primitive type is that this test lets T be substituted
;;; for LIST, POSITIVE-FIXNUM for FIXNUM, etc.
;;; The SCs of the TN's primitive types is a subset of the SCs of the copied
;;; TN. Moves between TNs of different primitive type SCs may need to be
;;; changed into coercions, so we can't squeeze them out. The reason for
;;; testing for subset of the SCs instead of the same primitive type is
;;; that this test lets T be substituted for LIST, POSITIVE-FIXNUM for FIXNUM,
;;; etc. Note that more SCs implies fewer possible values, or a subtype
;;; relationship, since more SCs implies more possible representations.
;;;
(
defun
tn-is-copy-of
(
tn
)
(
declare
(
type
tn
tn
)
(
inline
member
))
(
declare
(
type
tn
tn
)
(
inline
subsetp
))
(
let
((
writes
(
tn-writes
tn
)))
(
and
(
eq
(
tn-kind
tn
)
:normal
)
(
not
(
tn-sc
tn
))
; Not wired or restricted.
...
...
@@ -78,14 +80,10 @@
(
let
((
arg-tn
(
tn-ref-tn
(
vop-args
vop
))))
(
and
(
or
(
not
(
tn-sc
arg-tn
))
(
eq
(
tn-kind
arg-tn
)
:constant
))
(
let
((
arg-scs
(
primitive-type-scs
(
tn-primitive-type
arg-tn
))))
(
dolist
(
tn-sc
(
primitive-type-scs
(
tn-primitive-type
tn
))
nil
)
(
declare
(
type
sc-number
tn-sc
))
(
when
(
member
tn-sc
arg-scs
)
(
return
t
))))
(
subsetp
(
primitive-type-scs
(
tn-primitive-type
tn
))
(
primitive-type-scs
(
tn-primitive-type
arg-tn
)))
(
let
((
leaf
(
tn-leaf
tn
)))
(
or
(
not
leaf
)
(
not
(
symbol-package
(
leaf-name
leaf
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment