Add MachineRegisterInfo::constrainRegClass and use it in MachineCSE.