Handbook
Glossary
trim-before-ranges ( live-interval -- )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
.
spilling
Inputs
live-interval
a
live-interval-state
Outputs
None
Word description
Extends the last intervals range to one after the last use point and removes all intervals beyond that.
Definition
USING:
accessors
compiler.cfg.linear-scan.live-intervals
compiler.cfg.linear-scan.ranges
kernel
math
;
IN:
compiler.cfg.linear-scan.allocation.spilling
:
trim-before-ranges
( live-interval -- )
dup
last-use
n>>
1
+
swap
[
fix-upper-bound
]
change-ranges
drop
;