diff options
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 6a741a64b4b..3db64a2244d 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -859,9 +859,11 @@ record_operand_costs (insn, op_costs, reg_pref) if (GET_CODE (recog_data.operand[i]) == SUBREG) { rtx inner = SUBREG_REG (recog_data.operand[i]); +#ifdef CLASS_CANNOT_CHANGE_SIZE if (GET_MODE_SIZE (modes[i]) != GET_MODE_SIZE (GET_MODE (inner)) && GET_CODE (inner) == REG) SET_REGNO_REG_SET (reg_changes_size, REGNO (inner)); +#endif recog_data.operand[i] = inner; } |