Handbook
Glossary
candidate-cost ( interval reg conflicts -- cost )
Vocabulary
compiler
.
cfg
.
register-allocation
.
greedy
Inputs
interval
an
object
reg
an
object
conflicts
an
object
Outputs
cost
an
object
Definition
USING:
arrays
kernel
math
math.order
sequences
;
IN:
compiler.cfg.register-allocation.greedy
::
candidate-cost
( interval reg conflicts -- cost )
conflicts
[
reg
hint-score
]
map-sum
conflicts
[
interval
swap
younger-cascade?
]
count
10
*
+
interval reg
hint-score
-
conflicts 0
[
cached-spill-weight
max
]
reduce
conflicts
eviction-cost
3array
;