Handbook
Glossary
simple-optimization ( ... cfg quot: ( ... insns -- ... insns' ) -- ... )
Vocabulary
compiler
.
cfg
.
rpo
Inputs
cfg
a
cfg
quot
a
quotation
Outputs
None
Word description
Runs a quotation that optimizes each
basic-block
in the cfg, excluding the kill blocks. The quotation takes the blocks instruction sequence and returns them back in optimized form. The blocks are iterated in
reverse-post-order
.
Definition
USING:
kernel
;
IN:
compiler.cfg.rpo
:
simple-optimization
( ... cfg quot: ( ... insns -- ... insns' ) -- ... )
[
optimize-basic-block
]
curry
each-basic-block
;
inline