Fix PR10845. SUBREG_TO_REG shouldn't be used when the input and