This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Predictive commoning
Hello,
> On 1/18/07, Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> wrote:
>
> > * passes.c (init_optimization_passes): Add cleanups after PRE.
> > Add predictive commoning to loop optimizer passes.
>
> Index: passes.c
> ===================================================================
> *** passes.c (revision 120837)
> --- passes.c (working copy)
> *************** init_optimization_passes (void)
> *** 581,586 ****
> --- 581,588 ----
> NEXT_PASS (pass_pre);
> NEXT_PASS (pass_may_alias);
> NEXT_PASS (pass_sink_code);
> + NEXT_PASS (pass_dominator);
> + NEXT_PASS (pass_dce);
> NEXT_PASS (pass_tree_loop);
> NEXT_PASS (pass_cse_reciprocals);
> NEXT_PASS (pass_reassoc);
>
> uh - another DOM pass? What happens if you omit this hunk completely?
I do not recall exact details now (I wrote the patch half a year ago);
the trash remaining after PRE used to confuse predictive commoning. I
will check whether I can still reproduce the problem.
Zdenek