Skip to main content

Module spill

Module spill 

Source
Expand description

Spill code generation for register allocation.

When a virtual register cannot be assigned a physical register, spill code is inserted: stores before definitions and loads before uses. The spilled value lives in local (scratchpad) memory.

Functionsยง

insert_spill_code
Generate spill code for a set of spilled virtual registers.