Handbook
Glossary
insert-save-contexts ( cfg -- )
Insert context saves
Vocabulary
compiler
.
cfg
.
save-contexts
Inputs
cfg
a
cfg
Outputs
None
Word description
Inserts
##save-context
instructions in each
basic-block
in the cfg that needs them. Save contexts are needed after instructions that modify the context, or instructions that read parameter registers.
See also
insns-needs-save-context?
Definition
USING:
compiler.cfg.rpo
;
IN:
compiler.cfg.save-contexts
:
insert-save-contexts
( cfg -- )
[
insert-save-context
]
simple-optimization
;