+2005-07-27 Jeff Law <law@redhat.com>
+
+ * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
+ meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
+ equivalency sets, correctly handle the case were vr0 has an
+ equivalency set, but vr1 does not.
+
2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/23073
+2005-07-27 Jeff Law <law@redhat.com>
+
+ * gcc.c-torture/execute/pr22630.c: New test.
+
2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/23073
the two sets. */
if (vr0->equiv && vr1->equiv && vr0->equiv != vr1->equiv)
bitmap_and_into (vr0->equiv, vr1->equiv);
+ else if (vr0->equiv && !vr1->equiv)
+ bitmap_clear (vr0->equiv);
set_value_range (vr0, vr0->type, min, max, vr0->equiv);
}
the two sets. */
if (vr0->equiv && vr1->equiv && vr0->equiv != vr1->equiv)
bitmap_and_into (vr0->equiv, vr1->equiv);
+ else if (vr0->equiv && !vr1->equiv)
+ bitmap_clear (vr0->equiv);
}
else
goto no_meet;
{
if (vr1->type == VR_ANTI_RANGE)
copy_value_range (vr0, vr1);
+
+ /* The resulting set of equivalences is the intersection of
+ the two sets. */
+ if (vr0->equiv && vr1->equiv && vr0->equiv != vr1->equiv)
+ bitmap_and_into (vr0->equiv, vr1->equiv);
+ else if (vr0->equiv && !vr1->equiv)
+ bitmap_clear (vr0->equiv);
}
else
goto no_meet;