Added some heuristic for register spilling