diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-14 13:34:57 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-14 13:34:57 +0000 |
commit | 69f64eb562f030acbb009c1508c9b79a1f8ebd71 (patch) | |
tree | 970b0e0064b90ed58896a85a06254562b80eb47c /gcc/tree-vrp.c | |
parent | 6e813015c43e3069492f202d8b164ec251ea337a (diff) | |
download | gcc-69f64eb562f030acbb009c1508c9b79a1f8ebd71.tar.gz |
gcc/
PR tree-optimization/20657
* tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
create an appropriate range from it.
testsuite/
PR tree-optimization/20657
* gcc.dg/tree-ssa/pr20657.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98134 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index e8f52bb72f4..014f1956926 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -830,6 +830,8 @@ extract_range_from_expr (value_range *vr, tree expr) extract_range_from_unary_expr (vr, expr); else if (expr_computes_nonzero (expr)) set_value_range_to_nonnull (vr, TREE_TYPE (expr)); + else if (TREE_CODE (expr) == INTEGER_CST) + set_value_range (vr, VR_RANGE, expr, expr); else set_value_range (vr, VR_VARYING, NULL_TREE, NULL_TREE); } |