The set of available registers in a register class is known ahead of time. It can be computed with pop-count.