Handbook
Glossary
optimize-basic-block ( bb quot -- )
Vocabulary
compiler
.
cfg
.
rpo
Inputs
bb
a
basic-block
quot
a
quotation
Outputs
None
Word description
Performs one
simple-optimization
step. The quotation takes the instructions of the basic block and returns them back in an optimized form.
Definition
USING:
accessors
compiler.cfg
kernel
namespaces
;
IN:
compiler.cfg.rpo
:
optimize-basic-block
( bb quot -- )
over
kill-block?>>
[
2drop
]
[
over
basic-block
set
change-instructions
drop
]
if
;
inline