mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
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.
This commit is contained in:
parent
cd5ab6377b
commit
03998db647
13 changed files with 488 additions and 98 deletions
|
@ -40,6 +40,7 @@
|
|||
#:use-module (language cps specialize-numbers)
|
||||
#:use-module (language cps specialize-primcalls)
|
||||
#:use-module (language cps split-rec)
|
||||
#:use-module (language cps switch)
|
||||
#:use-module (language cps type-fold)
|
||||
#:use-module (language cps verify)
|
||||
#:use-module (system base optimize)
|
||||
|
@ -107,6 +108,7 @@
|
|||
(specialize-primcalls #:specialize-primcalls?)
|
||||
(eliminate-common-subexpressions #:cse?)
|
||||
(eliminate-dead-code #:eliminate-dead-code?)
|
||||
(optimize-branch-chains #:optimize-branch-chains?)
|
||||
;; Running simplify here enables rotate-loops to do a better job.
|
||||
(simplify #:simplify?)
|
||||
(rotate-loops #:rotate-loops?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue