This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Ping: loop distribution for single nested loops
- From: Andi Kleen <andi at firstfloor dot org>
- To: "Sebastian Pop" <sebpop at gmail dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: 02 Mar 2008 01:19:18 +0100
- Subject: Re: [patch] Ping: loop distribution for single nested loops
- References: <cb9d34b20802271112t790e6f5cx7543712dfff7b4e5@mail.gmail.com>
"Sebastian Pop" <sebpop@gmail.com> writes:
> +@item -ftree-loop-distribution
> +Perform loop distribution. This flag can improve cache performance on
> +big loop bodies and allow further loop optimizations, like
> +parallelization or vectorization, to take place.
> +
Very brief
> +/* This pass performs loop distribution: for example, the loop
> +
> + |DO I = 2, N
> + | A(I) = B(I) + C
> + | D(I) = A(I-1)*E
> + |ENDDO
> +
> + is transformed to
> +
> + |DOALL I = 2, N
> + | A(I) = B(I) + C
> + |ENDDO
> + |
> + |DOALL I = 2, N
> + | D(I) = A(I-1)*E
> + |ENDDO
It would be nice if this example was in the info file as part of the
flag description so that normal users can figure out what the
flag actually does.
-Andi