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
9d1936d4
Commit
9d1936d4
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added a switch the disable the complementing optimization of type checks
(for testing its effectiveness.)
parent
1651e988
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/checkgen.lisp
+7
-2
7 additions, 2 deletions
compiler/checkgen.lisp
with
7 additions
and
2 deletions
compiler/checkgen.lisp
+
7
−
2
View file @
9d1936d4
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/checkgen.lisp,v 1.1
7
1991/0
2/20 14
:5
6
:43 ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/checkgen.lisp,v 1.1
8
1991/0
3/18 20
:5
4
:43 ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -138,6 +138,10 @@
count
)))
;;; Switch to disable check complementing, for evaluation.
;;;
(
defvar
*complement-type-checks*
t
)
;;; MAYBE-NEGATE-CHECK -- Internal
;;;
;;; Cont is a continuation we are doing a type check on and Types is a list
...
...
@@ -172,7 +176,8 @@
(
weak
(
maybe-weaken-check
c
cont
)))
(
if
(
and
diff
(
<
(
type-test-cost
diff
)
(
type-test-cost
weak
)))
(
type-test-cost
weak
))
*complement-type-checks*
)
(
list
t
diff
c
)
(
list
nil
weak
c
))))
ptypes
types
)))
...
...
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