Allocate local registers in order for optimal coloring.