* lra-constraints.c (process_address_1): Do not attempt to decompose
addresses for MEMs that satisfy fixed-form constraints.
From-SVN: r243632
+2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
+
+ * lra-constraints.c (process_address_1): Do not attempt to decompose
+ addresses for MEMs that satisfy fixed-form constraints.
+
2016-12-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/78788
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)))