Spill metric


A spill metric is a heuristic metric used by register allocators to decide which registers to spill. Popular spill metrics are:
Where cost is the estimated cost of spilling a value from registers into memory.