This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][mem-ref2] More forwrpop
- From: Michael Matz <matz at suse dot de>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Jun 2010 16:37:49 +0200 (CEST)
- Subject: Re: [PATCH][mem-ref2] More forwrpop
- References: <alpine.LNX.2.00.1006171737530.1429@zhemvz.fhfr.qr>
Hi,
On Thu, 17 Jun 2010, Richard Guenther wrote:
> --- 838,884 ----
> + {
> + tree *def_rhs_basep = &TREE_OPERAND (def_rhs, 0);
> + tree new_offset, new_base, saved;
> + while (handled_component_p (*def_rhs_basep))
> + def_rhs_basep = &TREE_OPERAND (*def_rhs_basep, 0);
...
> *************** forward_propagate_addr_expr_1 (tree name
> *** 885,890 ****
> --- 921,960 ----
> + {
> + tree *def_rhs_basep = &TREE_OPERAND (def_rhs, 0);
> + tree new_offset, new_base, saved;
> + while (handled_component_p (*def_rhs_basep))
> + def_rhs_basep = &TREE_OPERAND (*def_rhs_basep, 0);
[near copy of ... above]
Can you somehow factor out the common code?
Ciao,
Michael.