aco: refactor get_reg() to take Temp instead of RegClass