diff options
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 864de41..d4470d2 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -1173,15 +1173,14 @@ value_inside_range (tree val, tree min, tree max) } -/* Return TRUE if *VR includes the value zero. */ +/* Return TRUE if *VR includes the value X. */ bool -range_includes_zero_p (const value_range_base *vr) +range_includes_p (const value_range_base *vr, HOST_WIDE_INT x) { if (vr->varying_p () || vr->undefined_p ()) return true; - tree zero = build_int_cst (vr->type (), 0); - return vr->may_contain_p (zero); + 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, |