summaryrefslogtreecommitdiff
path: root/module/system/base/optimize.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2020-08-11 23:09:51 +0200
committerAndy Wingo <wingo@pobox.com>2020-08-12 23:30:08 +0200
commit03998db647546df017feb19c0d5912e7451a61fc (patch)
tree968fe99c1a0e39b96a340b37c0f0ed2199e1e65e /module/system/base/optimize.scm
parentcd5ab6377bb14cb8248e0ba577ee0c44bce43b60 (diff)
downloadguile-03998db647546df017feb19c0d5912e7451a61fc.tar.gz
Add new pass to optimize branch chains to table dispatch
* module/language/cps/switch.scm: New pass. * module/Makefile.am (SOURCES): * am/bootstrap.am (SOURCES): Add switch.scm. * module/system/base/optimize.scm (available-optimizations): * module/language/cps/optimize.scm (optimize-first-order-cps): Run switch optimization at level 2. * libguile/hash.c (JENKINS_LOOKUP3_HASHWORD2): Add note regarding cross-compilation. * module/language/cps/graphs.scm (intmap-select): New definition. * module/language/cps/utils.scm (compute-singly-referenced-labels): Move here, from various places. Doesn't take a body intset argument. * module/language/cps/contification.scm: * module/language/cps/closure-conversion.scm: * module/language/cps/simplify.scm: Use compute-singly-referenced-labels from utils. * module/language/cps/effects-analysis.scm (annotation->memory-kind*): (annotation->memory-kind): Add symbol annotation cases.
Diffstat (limited to 'module/system/base/optimize.scm')
-rw-r--r--module/system/base/optimize.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/system/base/optimize.scm b/module/system/base/optimize.scm
index 6a88d7ecd..cf40cb8a2 100644
--- a/module/system/base/optimize.scm
+++ b/module/system/base/optimize.scm
@@ -47,6 +47,7 @@
(#:resolve-self-references? 2)
(#:devirtualize-integers? 2)
(#:specialize-numbers? 2)
+ (#:optimize-branch-chains? 2)
(#:licm? 2)
(#:rotate-loops? 2)
;; This one is used by the slot allocator.