This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Scheduling complete loop unrolling early and unconditional?
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 16 Dec 2004 17:09:10 +0100 (CET)
- Subject: Re: Scheduling complete loop unrolling early and unconditional?
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.