[dataflow] remove useless call from fwprop

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Wed Mar 28 12:22:00 GMT 2007


> Have you tested this?

Sure, bootstrapped/tested i686-pc-linux-gnu.

> I would love to get rid of this, but unless you get rid of
> 
>   for (i = 0; i < DF_USES_TABLE_SIZE (); i++)
>     {
>       struct df_ref *use = DF_USES_GET (i);
>       if (use)
>     if (!current_loops
>         || DF_REF_TYPE (use) == DF_REF_REG_USE
>         || DF_REF_BB (use)->loop_father == NULL)
>       forward_propagate_into (use);
>     }
>  
> and the other code like it.,
> you cannot get rid of that call.

I can, because the table is already ordered by register number thanks to
the reaching-definition computation.  The thing is, this code is
independent of the *ordering* of the table.  It just cares that the
table is there.

Paolo



More information about the Gcc-patches mailing list