|
11.6.5 Register Assignment and ReassignmentRegister Assignment (the other side) Which actual registers to use May depend on the machine Registers allocated and then freed Register spill: when we remove a value we'd really like to keep in a register, but can't
Stored value same Variables and expressions not "live" Heuristics
Belady's Algorithm adapted for Register Allocation
Create A Node
Else if there is an acceptable register, use it
Else use that register whose value won't be used for the longest
time (spill the value)
|