]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/21765 (-free-vrp is undocumented.)
authorDiego Novillo <dnovillo@redhat.com>
Thu, 2 Jun 2005 17:13:26 +0000 (17:13 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 2 Jun 2005 17:13:26 +0000 (13:13 -0400)
PR 21765
* doc/invoke.texi: Document -ftree-vrp.

From-SVN: r100495

gcc/ChangeLog
gcc/doc/invoke.texi

index ced17d5ab45c154391c9fea1ae239b3e34cb10e1..d1c639783cb8957dd59e1360455cf1f035ebbdd5 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-02  Diego Novillo  <dnovillo@redhat.com>
+
+       PR 21765
+       * doc/invoke.texi: Document -ftree-vrp.
+
 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
 
        PR tree-optimization/21734
index 94c4b2ead7a740d9bd636611c035ad02a3276283..0bcd3d9d85c57a4edc8b03e98203f874a94d95c2 100644 (file)
@@ -277,6 +277,7 @@ Objective-C and Objective-C++ Dialects}.
 -fdump-tree-sra@r{[}-@var{n}@r{]} @gol
 -fdump-tree-salias @gol
 -fdump-tree-fre@r{[}-@var{n}@r{]} @gol
+-fdump-tree-vrp@r{[}-@var{n}@r{]} @gol
 -ftree-vectorizer-verbose=@var{n} @gol
 -fdump-tree-storeccp@r{[}-@var{n}@r{]} @gol
 -feliminate-dwarf2-dups -feliminate-unused-debug-types @gol
@@ -4067,6 +4068,11 @@ file name.
 Dump each function after applying vectorization of loops.  The file name is
 made by appending @file{.vect} to the source file name.
 
+@item vrp
+@opindex fdump-tree-vrp
+Dump each function after Value Range Propagation (VRP).  The file name
+is made by appending @file{.vrp} to the source file name.
+
 @item all
 @opindex fdump-tree-all
 Enable all the available tree dumps with the flags provided in this option.
@@ -4321,6 +4327,7 @@ also turns on the following optimization flags:
 -funit-at-a-time @gol
 -falign-functions  -falign-jumps @gol
 -falign-loops  -falign-labels @gol
+-ftree-vrp @gol
 -ftree-pre}
 
 Please note the warning under @option{-fgcse} about
@@ -4963,6 +4970,15 @@ optimization later.  This is enabled by default at @option{-O} and higher.
 @item -ftree-vectorize
 Perform loop vectorization on trees.
 
+@item -ftree-vrp
+Perform Value Range Propagation on trees.  This is similar to the
+constant propagation pass, but instead of values, ranges of values are
+propagated.  This allows the optimizers to remove unnecessary range
+checks like array bound checks and null pointer checks.  This is
+enabled by default at @option{-O2} and higher.  Null pointer check
+elimination is only done if @option{-fdelete-null-pointer-checks} is
+enabled.
+
 @item -ftracer
 @opindex ftracer
 Perform tail duplication to enlarge superblock size.  This transformation