[patch] Ping: loop distribution for single nested loops
Andi Kleen
andi@firstfloor.org
Sun Mar 2 00:19:00 GMT 2008
"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
More information about the Gcc-patches
mailing list