Rematerialization
When registers run out, the allocator recomputes a cheap value where it's needed instead of saving it to the stack and loading it back.
A spill costs a store to memory and a load back. If the value is a constant, an address relative to the stack pointer, or a simple sum of values already in registers, it's cheaper to just create it again — a mov or an lea rather than a memory access. Preston Briggs, Keith Cooper and Linda Torczon showed in 1992 how to fold this into a graph-colouring allocator, and every serious backend does it today.
It runs in the opposite direction to common subexpression elimination, which keeps a value around to avoid recomputing it. That's not a contradiction but a trade-off: CSE assumes registers are available, and rematerialization cleans up when it turns out they weren't.