Revert "Never reload fixed form constraints memory operand"
authorThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 4 Oct 2018 16:48:50 +0000 (16:48 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 4 Oct 2018 16:48:50 +0000 (16:48 +0000)
This reverts commit r264834.

2018-10-04  Thomas Preud'homme  <thomas.preudhomme@linaro.org>

    Revert
    2018-10-04  Thomas Preud'homme  <thomas.preudhomme@linaro.org>

    gcc/
    * lra-constraints.c (process_address_1): Bail out for all
    satisfied fixed constraints.

From-SVN: r264849

gcc/ChangeLog
gcc/lra-constraints.c

index 0340fa32e55e957c2fb98178a342f020ac74d310..d0112655d3c2aaa2f438d8aa9fe3a402d6706f26 100644 (file)
        * ipa-inline.c (inline_to_all_callers_1):
        Call ultimate_alias_target for node being inlined.
 
-2018-10-04  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
-
-       * lra-constraints.c (process_address_1): Bail out for all
-       satisfied fixed constraints.
-
 2018-10-03  Jeff Law  <law@redhat.com>
 
         * gimple-ssa-sprintf.c (format_string): Do not hardcode size of
index c3edd9ef45d5d4b00a9ee3ec9d9145236e7cf3cf..774d1ff3aaa722d088bdde09ad78095704e98f8f 100644 (file)
@@ -3243,7 +3243,8 @@ process_address_1 (int nop, bool check_only_p,
   /* 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
+          && !(INSN_CODE (curr_insn) < 0
+               && get_constraint_type (cn) == CT_FIXED_FORM
                && constraint_satisfied_p (op, cn)))
     decompose_mem_address (&ad, op);
   else if (GET_CODE (op) == SUBREG