+2018-11-12 Richard Biener <rguenther@suse.de>
+
+ * tree-vrp.c (set_value_range_to_nonnull): Clear equiv.
+ (set_value_range_to_null): Likewise.
+ * vr-values.c (vr_values::extract_range_from_comparison):
+ Clear equiv for constant singleton ranges.
+
2018-11-12 Wei Xiao <wei3.xiao@intel.com>
* config/i386/sse.md: Combine VFIXUPIMM* patterns
set_value_range_to_nonnull (value_range *vr, tree type)
{
tree zero = build_int_cst (type, 0);
- vr->update (VR_ANTI_RANGE, zero, zero);
+ set_value_range (vr, VR_ANTI_RANGE, zero, zero, NULL);
}
void
set_value_range_to_null (value_range *vr, tree type)
{
- set_value_range_to_value (vr, build_int_cst (type, 0), vr->equiv ());
+ set_value_range_to_value (vr, build_int_cst (type, 0), NULL);
}
/* Return true, if VAL1 and VAL2 are equal values for VRP purposes. */
type. */
val = fold_convert (type, val);
if (is_gimple_min_invariant (val))
- set_value_range_to_value (vr, val, vr->equiv ());
+ set_value_range_to_value (vr, val, NULL);
else
vr->update (VR_RANGE, val, val);
}
/* Like in PR19590, scev can return a constant function. */
if (is_gimple_min_invariant (chrec))
{
- set_value_range_to_value (vr, chrec, vr->equiv ());
+ set_value_range_to_value (vr, chrec, NULL);
return;
}