Early exit on VR_VARYING from irange::set.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 11 Nov 2020 08:05:32 +0000 (09:05 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 11 Nov 2020 10:45:36 +0000 (11:45 +0100)
gcc/ChangeLog:

* value-range.cc (irange::set): Early exit on VR_VARYING.

gcc/value-range.cc

index b7ccba010e45661a425c10d6e5f268c49713fb19..2b82dfe2a7b5db93762a9ba64174e41fc2b81553 100644 (file)
@@ -249,7 +249,9 @@ irange::set (tree min, tree max, value_range_kind kind)
       return;
     }
 
-  if (POLY_INT_CST_P (min) || POLY_INT_CST_P (max))
+  if (kind == VR_VARYING
+      || POLY_INT_CST_P (min)
+      || POLY_INT_CST_P (max))
     {
       set_varying (TREE_TYPE (min));
       return;