]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
postreload.c (reload_cse_simplify_operands): Take attribute enabled into account.
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 2 Aug 2010 09:42:37 +0000 (09:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 2 Aug 2010 09:42:37 +0000 (09:42 +0000)
* postreload.c (reload_cse_simplify_operands): Take attribute enabled
into account.

From-SVN: r162812

gcc/ChangeLog
gcc/postreload.c

index 7ebb3d067cbbfee1aa7ad0487eaf4765bb51e892..31348a411b08d0d76f123359b059044cb272dee2 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * postreload.c (reload_cse_simplify_operands): Take attribute enabled
+       into account.
+
 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
index a0c7cc19a4bfc0670b596e6f358a55b3e2caf0b9..a62569e4742383ffa029cf105427be5d8097ab40 100644 (file)
@@ -573,6 +573,7 @@ reload_cse_simplify_operands (rtx insn, rtx testreg)
                     alternative yet and the operand being replaced is not
                     a cheap CONST_INT.  */
                  if (op_alt_regno[i][j] == -1
+                     && recog_data.alternative_enabled_p[j]
                      && reg_fits_class_p (testreg, rclass, 0, mode)
                      && (!CONST_INT_P (recog_data.operand[i])
                          || (rtx_cost (recog_data.operand[i], SET,