Handbook
Glossary
weighted-traffic ( graph -- count )
Vocabulary
compiler
.
cfg
.
register-allocation
.
spill-sites
.
fixtures
Inputs
graph
an
object
Outputs
count
an
object
Definition
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linearization
compiler.cfg.loop-detection
kernel
math
math.functions
math.order
sequences
;
IN:
compiler.cfg.register-allocation.spill-sites.fixtures
::
weighted-traffic
( graph -- count )
graph
needs-loops
graph
linearization-order
[|
bb |
bb
instructions>>
[
dup
##spill?
swap
##reload?
or
]
count
8 bb
loop-nesting-at
3
min
^
*
]
map-sum
;