diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2019-06-12 12:53:20 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2019-06-12 12:53:20 +0000 |
commit | 57bbc3e2f030b810766916189ec802aed5db5041 (patch) | |
tree | f03683132a4e296fe7581e79329e70ebb5f40ea1 /gcc/tree-vrp.c | |
parent | 26d7a5e690169ac04acde90070b0092c41b71c7e (diff) | |
download | gcc-57bbc3e2f030b810766916189ec802aed5db5041.zip gcc-57bbc3e2f030b810766916189ec802aed5db5041.tar.gz gcc-57bbc3e2f030b810766916189ec802aed5db5041.tar.bz2 |
Remove value_range_constant_singleton in favor of value_range::singleton_p.
From-SVN: r272182
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index d94de2b..065152a 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -1154,21 +1154,6 @@ range_includes_p (const value_range_base *vr, HOST_WIDE_INT x) return vr->may_contain_p (build_int_cst (vr->type (), x)); } -/* If *VR has a value range that is a single constant value return that, - otherwise return NULL_TREE. - - ?? This actually returns TRUE for [&x, &x], so perhaps "constant" - is not the best name. */ - -tree -value_range_constant_singleton (const value_range_base *vr) -{ - tree result = NULL; - if (vr->singleton_p (&result)) - return result; - return NULL; -} - /* Value range wrapper for wide_int_range_set_zero_nonzero_bits. Compute MAY_BE_NONZERO and MUST_BE_NONZERO bit masks for range in VR. |