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
7860c68d
Commit
7860c68d
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed to allow packing of restricted TNs in reserved locations.
parent
ecec63b9
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/pack.lisp
+7
-3
7 additions, 3 deletions
compiler/pack.lisp
with
7 additions
and
3 deletions
compiler/pack.lisp
+
7
−
3
View file @
7860c68d
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/pack.lisp,v 1.4
4
199
1/11/16 16:03:02 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/pack.lisp,v 1.4
5
199
2/05/03 21:45:55 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -959,7 +959,7 @@
;;; of the registers. This way, all of these temps probably end up in one
;;; register.
;;;
(
defun
select-location
(
tn
sc
)
(
defun
select-location
(
tn
sc
&optional
use-reserved-locs
)
(
declare
(
type
tn
tn
)
(
type
sc
sc
)
(
inline
member
))
(
let*
((
sb
(
sc-sb
sc
))
(
element-size
(
sc-element-size
sc
))
...
...
@@ -980,7 +980,9 @@
(
if
(
or
(
eq
(
sb-kind
sb
)
:unbounded
)
(
and
(
member
current-start
(
sc-locations
sc
))
(
not
(
member
current-start
(
sc-reserve-locations
sc
)))))
(
or
use-reserved-locs
(
not
(
member
current-start
(
sc-reserve-locations
sc
))))))
(
dotimes
(
i
element-size
(
return-from
select-location
current-start
))
(
let
((
offset
(
+
current-start
i
)))
...
...
@@ -1418,6 +1420,8 @@
(
not
(
and
(
minusp
(
tn-cost
tn
))
(
sc-save-p
sc
))))
(
let
((
loc
(
or
(
find-ok-target-offset
original
sc
)
(
select-location
original
sc
)
(
and
restricted
(
select-location
original
sc
t
))
(
when
(
eq
(
sb-kind
(
sc-sb
sc
))
:unbounded
)
(
grow-sc
sc
)
(
or
(
select-location
original
sc
)
...
...
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