added a method to get reg num after register allocation