There is no need to compare nonzero masks when comparing two VARYING
ranges, as they are always the same when range types are the same.
gcc/ChangeLog:
* value-range.cc (irange::legacy_equal_p): Remove nonozero mask
check when comparing VR_VARYING ranges.
if (m_kind == VR_UNDEFINED)
return true;
if (m_kind == VR_VARYING)
- {
- return (range_compatible_p (type (), other.type ())
- && vrp_operand_equal_p (m_nonzero_mask, other.m_nonzero_mask));
- }
+ return range_compatible_p (type (), other.type ());
return (vrp_operand_equal_p (tree_lower_bound (0),
other.tree_lower_bound (0))
&& vrp_operand_equal_p (tree_upper_bound (0),