+2014-06-16 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/61482
+ * tree-vrp.c (adjust_range_with_scev): Avoid setting of
+ [-INF(OVF), +INF(OVF)] range.
+
2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
max = init;
else
min = init;
-
- /* If we would create an invalid range, then just assume we
- know absolutely nothing. This may be over-conservative,
- but it's clearly safe, and should happen only in unreachable
- parts of code, or for invalid programs. */
- if (compare_values (min, max) == 1)
- return;
-
- set_value_range (vr, VR_RANGE, min, max, vr->equiv);
}
else if (vr->type == VR_RANGE)
{
|| compare_values (tmax, max) == -1)
max = tmax;
}
+ }
+ else
+ return;
- /* If we just created an invalid range with the minimum
- greater than the maximum, we fail conservatively.
- This should happen only in unreachable
- parts of code, or for invalid programs. */
- if (compare_values (min, max) == 1)
- return;
+ /* If we just created an invalid range with the minimum
+ greater than the maximum, we fail conservatively.
+ This should happen only in unreachable
+ parts of code, or for invalid programs. */
+ if (compare_values (min, max) == 1
+ || (is_negative_overflow_infinity (min)
+ && is_positive_overflow_infinity (max)))
+ return;
- set_value_range (vr, VR_RANGE, min, max, vr->equiv);
- }
+ set_value_range (vr, VR_RANGE, min, max, vr->equiv);
}