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
5900cb34
Commit
5900cb34
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Add a derive-type optimizer for MAP.
parent
d4e81917
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/seqtran.lisp
+11
-1
11 additions, 1 deletion
compiler/seqtran.lisp
with
11 additions
and
1 deletion
compiler/seqtran.lisp
+
11
−
1
View file @
5900cb34
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/seqtran.lisp,v 1.2
8
200
3/08/25 20:50:59 gerd
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/seqtran.lisp,v 1.2
9
200
4/12/09 21:49:03 rtoy
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -571,3 +571,13 @@
...
@@ -571,3 +571,13 @@
*null-type*
)
*null-type*
)
((
cons-type-p
type
)
((
cons-type-p
type
)
(
cons-type-cdr-type
type
)))))
(
cons-type-cdr-type
type
)))))
(
defoptimizer
(
map
derive-type
)
((
output-spec
function
seq
&rest
more-seq
))
;; The result type of MAP is OUTPUT-SPEC, except when OUTPUT-SPEC is
;; NIL, in which case the result-type is NULL.
(
when
(
constant-continuation-p
output-spec
)
(
let
((
spec
(
continuation-value
output-spec
)))
(
if
spec
(
specifier-type
spec
)
(
specifier-type
'null
)))))
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