Handbook
Glossary
minimize-costs ( costs -- representations )
Vocabulary
compiler
.
cfg
.
representations
.
selection
Inputs
costs
a
sequence
Outputs
representations
a
sequence
Word description
For every vreg, compute preferred representation, that minimizes costs.
Definition
USING:
assocs
compiler.utilities
sequences
;
IN:
compiler.cfg.representations.selection
:
minimize-costs
( costs -- representations )
[
assoc-empty?
]
reject-values
[
>alist
alist-min
first
]
assoc-map
;