tree-vrp.c (ssa_name_nonzero_p): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Sat, 18 Apr 2009 11:49:20 +0000 (11:49 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 18 Apr 2009 11:49:20 +0000 (11:49 +0000)
* tree-vrp.c (ssa_name_nonzero_p): Remove.
* tree.h: Remove the prototype for ssa_name_nonzero_p.

From-SVN: r146313

gcc/ChangeLog
gcc/tree-vrp.c
gcc/tree.h

index fa02ee6fe2e123688a4bf32634f802dd695b4a54..49608da89abdc748ffe80bb7ad7b32e6cd1e6b0a 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
+
+       * tree-vrp.c (ssa_name_nonzero_p): Remove.
+       * tree.h: Remove the prototype for ssa_name_nonzero_p.
+
 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
 
        * tree.c (function_args_count): Remove.
index a68eba605040e95f7f835b19f45454783b219753..e3d14b291825ad0c9a84bb1b4a878caae3edaf54 100644 (file)
@@ -1368,28 +1368,6 @@ ssa_name_nonnegative_p (const_tree t)
   return false;
 }
 
-/* Return true if T, an SSA_NAME, is known to be nonzero.  Return
-   false otherwise or if no value range information is available.  */
-
-bool
-ssa_name_nonzero_p (const_tree t)
-{
-  value_range_t *vr = get_value_range (t);
-
-  if (!vr)
-    return false;
-
-  /* A VR_RANGE which does not include zero is a nonzero value.  */
-  if (vr->type == VR_RANGE && !symbolic_range_p (vr))
-    return ! range_includes_zero_p (vr);
-
-  /* A VR_ANTI_RANGE which does include zero is a nonzero value.  */
-  if (vr->type == VR_ANTI_RANGE && !symbolic_range_p (vr))
-    return range_includes_zero_p (vr);
-
-  return false;
-}
-
 /* If OP has a value range with a single constant value return that,
    otherwise return NULL_TREE.  This returns OP itself if OP is a
    constant.  */
index 793dcf38c71dc740e159dd474544e0e5eb7cdf8c..c5c855fad23faf691df68269d4ca8d109a011091 100644 (file)
@@ -5199,7 +5199,6 @@ extern tree tree_mem_ref_addr (tree, tree);
 extern void copy_mem_ref_info (tree, tree);
 
 /* In tree-vrp.c */
-extern bool ssa_name_nonzero_p (const_tree);
 extern bool ssa_name_nonnegative_p (const_tree);
 
 /* In tree-object-size.c.  */