invoke.texi (-ftree-loop-distribution): Add an example.
authorSebastian Pop <sebastian.pop@amd.com>
Mon, 10 Mar 2008 12:56:56 +0000 (12:56 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Mon, 10 Mar 2008 12:56:56 +0000 (12:56 +0000)
2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>

* doc/invoke.texi (-ftree-loop-distribution): Add an example.

From-SVN: r133076

gcc/ChangeLog
gcc/doc/invoke.texi

index 0cc26c7b5567f5fdfcaad2e78e143103df3ddb4d..6e5619f9d9b8f1925f4554f22e9215851d7fb983 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * doc/invoke.texi (-ftree-loop-distribution): Add an example.
+
 2008-03-10  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-pre.c (get_sccvn_value): Simplify.
index 304525dcccf522b4350857243fca32b008889262..c56f890fec9d7b09f43b99319bbd500d648eb96f 100644 (file)
@@ -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