From: Eric Botcazou Date: Wed, 14 Dec 2016 08:34:15 +0000 (+0000) Subject: lra-constraints.c (process_address_1): Do not attempt to decompose addresses for... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=164f063463d64a1575841d6735ba0298605c4626;p=gcc.git lra-constraints.c (process_address_1): Do not attempt to decompose addresses for MEMs that satisfy fixed-form constraints. * lra-constraints.c (process_address_1): Do not attempt to decompose addresses for MEMs that satisfy fixed-form constraints. From-SVN: r243632 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17a33618b5e..24c6672e008 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-14 Eric Botcazou + + * lra-constraints.c (process_address_1): Do not attempt to decompose + addresses for MEMs that satisfy fixed-form constraints. + 2016-12-14 Richard Biener PR tree-optimization/78788 diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index e661aefe202..f7009eac329 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -3080,7 +3080,11 @@ process_address_1 (int nop, bool check_only_p, if (insn_extra_address_constraint (cn)) decompose_lea_address (&ad, curr_id->operand_loc[nop]); - else if (MEM_P (op)) + /* Do not attempt to decompose arbitrary addresses generated by combine + for asm operands with loose constraints, e.g 'X'. */ + else if (MEM_P (op) + && !(get_constraint_type (cn) == CT_FIXED_FORM + && constraint_satisfied_p (op, cn))) decompose_mem_address (&ad, op); else if (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op)))