mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +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
|
@ -110,6 +110,10 @@ extern double floor();
|
|||
break; \
|
||||
} \
|
||||
\
|
||||
/* Scheme can access symbol-hash, which exposes this value. For \
|
||||
cross-compilation reasons, we ensure that the high 32 bits of \
|
||||
the hash on a 64-bit system are equal to the hash on a 32-bit \
|
||||
system. The low 32 bits just add more entropy. */ \
|
||||
if (sizeof (ret) == 8) \
|
||||
ret = (((unsigned long) c) << 32) | b; \
|
||||
else \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue