nvc0: kick out empty live ranges

They affect overlap tests even though they're actually empty.
This commit is contained in:
Christoph Bumiller 2011-02-22 21:50:17 +01:00
parent cd47f10c90
commit f017483553

View file

@ -87,6 +87,9 @@ add_range_ex(struct nv_value *val, int bgn, int end, struct nv_range *new_range)
{
struct nv_range *range, **nextp = &val->livei;
if (bgn == end) /* [a, a) is invalid / empty */
return TRUE;
for (range = val->livei; range; range = range->next) {
if (end < range->bgn)
break; /* insert before */