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
577254a7
Commit
577254a7
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added test that inhibits substituting for local call args, as this defeats
IR2trans work to maintain parallel assingment semantics.
parent
17f86bcd
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
+24
-6
24 additions, 6 deletions
compiler/copyprop.lisp
with
24 additions
and
6 deletions
compiler/copyprop.lisp
+
24
−
6
View file @
577254a7
...
...
@@ -142,6 +142,29 @@
(
defevent
copy-deleted-move
"Copy propagation deleted a move."
)
;;; OK-COPY-REF -- Internal
;;;
;;; Return true if Arg is a reference to a TN that we can copy propagate to.
;;; In addition to dealing with copy chains (as discussed below), we also throw
;;; out references that are arguments to a local call, since IR2tran introduces
;;; tempes in that context to preserve parallel assignment semantics.
;;;
(
defun
ok-copy-ref
(
vop
arg
in
original-copy-of
)
(
declare
(
type
vop
vop
)
(
type
tn
arg
)
(
type
sset
in
)
(
type
hash-table
original-copy-of
))
(
and
(
sset-member
arg
in
)
(
do
((
original
(
gethash
arg
original-copy-of
)
(
gethash
original
original-copy-of
)))
((
not
original
)
t
)
(
unless
(
sset-member
original
in
)
(
return
nil
)))
(
let
((
info
(
vop-info
vop
)))
(
not
(
and
(
eq
(
vop-info-move-args
info
)
:local-call
)
(
>=
(
position-in
#'
tn-ref-across
arg
(
vop-args
vop
)
:key
#'
tn-ref-tn
)
(
length
(
template-arg-types
info
))))))))
;;; PROPAGATE-COPIES -- Internal
;;;
;;; Make use of the result of flow analysis to eliminate copies. We scan
...
...
@@ -192,12 +215,7 @@
((
null
arg-ref
))
(
let*
((
arg
(
tn-ref-tn
arg-ref
))
(
copy-of
(
tn-is-copy-of
arg
)))
(
when
(
and
copy-of
(
sset-member
arg
in
)
(
do
((
original
(
gethash
arg
original-copy-of
)
(
gethash
original
original-copy-of
)))
((
not
original
)
t
)
(
unless
(
sset-member
original
in
)
(
return
nil
))))
(
when
(
and
copy-of
(
ok-copy-ref
vop
arg
in
original-copy-of
))
(
when
this-copy
(
setf
(
gethash
this-copy
original-copy-of
)
arg
))
(
change-tn-ref-tn
arg-ref
copy-of
)
...
...
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