re PR rtl-optimization/35542 (fwprop only propagates one operand)

2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>

	PR rtl-optimization/35542
	* fwprop.c (forward_propagate_and_simplify): Replace
	loc_reg_mentioned_in_p with reg_mentioned_p.

From-SVN: r133829
This commit is contained in:
Andy Hutchinson 2008-04-02 09:56:17 +00:00 committed by Paolo Bonzini
parent 460d667de9
commit 4fefbcdbe5
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
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 <bonzini@gnu.org>
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.

View File

@ -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);