Move virtual function call out of loop to speed up getFreePhysReg by about