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:04:06 +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.
Ok, I'm trying to bootstrap
Index: tree-optimize.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v
retrieving revision 2.65
diff -u -r2.65 tree-optimize.c
--- tree-optimize.c 30 Nov 2004 15:38:33 -0000 2.65
+++ tree-optimize.c 16 Dec 2004 16:02:34 -0000
@@ -381,6 +381,10 @@
NEXT_PASS (pass_loop);
NEXT_PASS (pass_dominator);
NEXT_PASS (pass_redundant_phi);
+ NEXT_PASS (pass_sra);
+ NEXT_PASS (pass_rename_ssa_copies);
+ NEXT_PASS (pass_dominator);
+ NEXT_PASS (pass_redundant_phi);
NEXT_PASS (pass_cd_dce);
NEXT_PASS (pass_dse);
NEXT_PASS (pass_forwprop);
possibly pass_rename_ssa_copies is required after sra? And the
others may help?
Richard.