Priority based register allocator