This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Scheduling complete loop unrolling early and unconditional?
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 16 Dec 2004 16:56:52 +0100 (CET)
- Subject: Scheduling complete loop unrolling early and unconditional?
Hi!
I seem to get significant better code by exchanging code like
for (int i=0; i<4; ++i)
a[i] = b[i] + c[i];
with a template meta-program. This seems to be because SRA
cannot scalarize the arrays if they are accessed in a loop.
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)?
Again, can we have complete loop unrolling enabled unconditionally?
Thanks,
Richard.
--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/