From: Andy Hutchinson Date: Wed, 2 Apr 2008 09:56:17 +0000 (+0000) Subject: re PR rtl-optimization/35542 (fwprop only propagates one operand) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fefbcdbe559d35de023ef4456ffbacba9bc37ad;p=gcc.git re PR rtl-optimization/35542 (fwprop only propagates one operand) 2008-04-02 Andy Hutchinson PR rtl-optimization/35542 * fwprop.c (forward_propagate_and_simplify): Replace loc_reg_mentioned_in_p with reg_mentioned_p. From-SVN: r133829 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6754a00c29..e64b233ac6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ +2008-04-02 Andy Hutchinson + + PR rtl-optimization/35542 + * fwprop.c (forward_propagate_and_simplify): Replace + loc_reg_mentioned_in_p with reg_mentioned_p. + 2008-04-02 Paolo Bonzini + PR rtl-optimization/35281 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New. (propagate_rtx_1): Handle PR_HANDLE_MEM. (propagate_rtx): Pass PR_HANDLE_MEM if appropriate. diff --git a/gcc/fwprop.c b/gcc/fwprop.c index 2566cbbb89e..4d97c9c4ecd 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -967,7 +967,7 @@ forward_propagate_into (struct df_ref *use) else parent = PATTERN (use_insn); - if (!loc_mentioned_in_p (DF_REF_LOC (use), parent)) + if (!reg_mentioned_p (DF_REF_REG (use), parent)) return; def_insn = DF_REF_INSN (def);