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
ba73aca3
Commit
ba73aca3
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Move any extra links from the initial component tail to the new component
tail in FIND-INITIAL-DFO.
parent
7e5722e9
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/dfo.lisp
+10
-2
10 additions, 2 deletions
compiler/dfo.lisp
with
10 additions
and
2 deletions
compiler/dfo.lisp
+
10
−
2
View file @
ba73aca3
...
@@ -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/dfo.lisp,v 1.1
3
1991/
09/29 16:10
:4
8
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dfo.lisp,v 1.1
4
1991/
11/09 22:03
:4
2
ram Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -326,7 +326,9 @@
...
@@ -326,7 +326,9 @@
;;; We iterate over the lambdas in each initial component, trying to put
;;; We iterate over the lambdas in each initial component, trying to put
;;; each function in its own component, but joining it to an existing component
;;; each function in its own component, but joining it to an existing component
;;; if we find that there are references between them. Any code that is left
;;; if we find that there are references between them. Any code that is left
;;; in an initial component must be unreachable, so we can delete it.
;;; in an initial component must be unreachable, so we can delete it. Stray
;;; links to the initial component tail (due NIL function terminated blocks)
;;; are moved to the appropriate newc component tail.
;;;
;;;
;;; When we are done, we assign DFNs and call FIND-TOP-LEVEL-COMPONENTS to
;;; When we are done, we assign DFNs and call FIND-TOP-LEVEL-COMPONENTS to
;;; pull out top-level code.
;;; pull out top-level code.
...
@@ -347,6 +349,12 @@
...
@@ -347,6 +349,12 @@
(
setq
new
(
make-empty-component
)))))
(
setq
new
(
make-empty-component
)))))
(
when
(
eq
(
component-kind
component
)
:initial
)
(
when
(
eq
(
component-kind
component
)
:initial
)
(
assert
(
null
(
component-lambdas
component
)))
(
assert
(
null
(
component-lambdas
component
)))
(
let
((
tail
(
component-tail
component
)))
(
dolist
(
pred
(
block-pred
tail
))
(
let
((
pred-component
(
block-component
pred
)))
(
unless
(
eq
pred-component
component
)
(
unlink-blocks
pred
tail
)
(
link-blocks
pred
(
component-tail
pred-component
))))))
(
delete-component
component
)))))
(
delete-component
component
)))))
(
dolist
(
com
(
components
))
(
dolist
(
com
(
components
))
...
...
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