aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-affine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-affine.cc')
-rw-r--r--gcc/tree-affine.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-affine.cc b/gcc/tree-affine.cc
index 5d0632f..ee327e6 100644
--- a/gcc/tree-affine.cc
+++ b/gcc/tree-affine.cc
@@ -351,7 +351,8 @@ expr_to_aff_combination (aff_tree *comb, tree_code code, tree type,
&& TYPE_OVERFLOW_WRAPS (itype)
&& TREE_CODE (op1) == INTEGER_CST
&& get_range_query (cfun)->range_of_expr (vr, op0)
- && vr.kind () == VR_RANGE)
+ && !vr.varying_p ()
+ && !vr.undefined_p ())
{
wide_int minv = vr.lower_bound ();
wide_int maxv = vr.upper_bound ();