This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][mem-ref2] More forwrpop


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]