re PR rtl-optimization/35542 (fwprop only propagates one operand)
authorAndy Hutchinson <hutchinsonamdy@aim.com>
Wed, 2 Apr 2008 09:56:17 +0000 (09:56 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Wed, 2 Apr 2008 09:56:17 +0000 (09:56 +0000)
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

gcc/ChangeLog
gcc/fwprop.c

index a6754a00c297250f06fabdb67ad909a2d3395ec4..e64b233ac6bf3e79434816e5ba82c4632730829f 100644 (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.
index 2566cbbb89ec64383320fb20e6a4ed94246475bc..4d97c9c4ecd5bdc373cc33d81eaa1f770dd26910 100644 (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);