Scheduling complete loop unrolling early and unconditional?
Richard Guenther
rguenth@tat.physik.uni-tuebingen.de
Thu Dec 16 16:09:00 GMT 2004
On Thu, 16 Dec 2004, Diego Novillo wrote:
> Richard Guenther wrote:
>
> > Therefore, is it possible to schedule either complete unrolling
> > of loops very early (before sra), or to schedule another sra
> > run after loop optimizations (that's what I'll try at the moment,
> > but possibly mess everything up)?
> >
> Scheduling SRA after loop optimizations sounds better. SRA should be
> able to run more than once.
Will another loop pass with just
p = &pass_loop2.sub;
NEXT_PASS (pass_loop_init);
NEXT_PASS (pass_complete_unroll);
NEXT_PASS (pass_loop_done);
*p = NULL;
not work? Will it need a pass_iv_canon before pass_complete_unroll?
I'd schedule pass_loop2 after the first run of dce. That should be
cheaper than running sra twice perhaps.
Richard.
More information about the Gcc
mailing list