Remove the ugly and write-only variable cur_reg_set.