Spill metric
From Wikipedia, the free encyclopedia
A spill metric is a heuristic metric used by register allocators to decide with registers to spill. Popular spill metrics are:
- cost / degree - introduced in Chaitlin's algorithm
- cost / degree2 - emphasizes the spill's effect on neighbours
- cost - emphasizes runtime
- minimising number of spill operations
Where cost is the estimated cost of spilling a value from registers into memory.

