This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Ping: loop distribution for single nested loops


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]