summaryrefslogtreecommitdiff
path: root/module/language/cps/optimize.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-11-30 16:58:58 +0100
committerAndy Wingo <wingo@pobox.com>2017-11-30 16:58:58 +0100
commit5675e46410c9a24b05ddf58cbe3b998a4c9cad7c (patch)
treea72efb2a4726c90d212d00a1c62cc3f1a19f8616 /module/language/cps/optimize.scm
parent2ab89102e7c82d114c0ac0ecd2a5d806637fdaab (diff)
downloadguile-5675e46410c9a24b05ddf58cbe3b998a4c9cad7c.tar.gz
-O1 disables call precoloring
* module/language/cps/compile-bytecode.scm (compile-function) (emit-bytecode): * module/language/cps/slot-allocation.scm (allocate-slots): * module/language/cps/optimize.scm (cps-default-optimization-options): Allow the "lazy vars" optimization, a form of slot precoloring, to be disabled. It will be disabled at -O0 or -O1, to speed compilation times.
Diffstat (limited to 'module/language/cps/optimize.scm')
-rw-r--r--module/language/cps/optimize.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/language/cps/optimize.scm b/module/language/cps/optimize.scm
index e5f46b953..662191903 100644
--- a/module/language/cps/optimize.scm
+++ b/module/language/cps/optimize.scm
@@ -133,4 +133,6 @@
#:resolve-self-references? #t
#:specialize-numbers? #t
#:licm? #t
- #:rotate-loops? #t))
+ #:rotate-loops? #t
+ ;; This one is used by the slot allocator.
+ #:precolor-calls? #t))