From 767297d1c5f404b52ca854995e127f874f26143f Mon Sep 17 00:00:00 2001 From: spop Date: Mon, 10 Mar 2008 12:56:56 +0000 Subject: [PATCH] 2008-03-10 Sebastian Pop * doc/invoke.texi (-ftree-loop-distribution): Add an example. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133076 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/doc/invoke.texi | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cc26c7b556..6e5619f9d9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-03-10 Sebastian Pop + + * doc/invoke.texi (-ftree-loop-distribution): Add an example. + 2008-03-10 Richard Guenther * tree-ssa-pre.c (get_sccvn_value): Simplify. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 304525dcccf..c56f890fec9 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -5937,7 +5937,22 @@ is used for debugging the data dependence analyzers. @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. +parallelization or vectorization, to take place. For example, the loop +@smallexample +DO I = 1, N + A(I) = B(I) + C + D(I) = E(I) * F +ENDDO +@end smallexample +is transformed to +@smallexample +DO I = 1, N + A(I) = B(I) + C +ENDDO +DO I = 1, N + D(I) = E(I) * F +ENDDO +@end smallexample @item -ftree-loop-im @opindex ftree-loop-im -- 2.11.0