I'm assuming this is a bug since all other read tests compare with itself's ir_value, and only this one doesn't. Otherwise why would you need to load to an ir_value for vec?

This commit is contained in:
Dale Weiler 2013-06-21 23:54:09 +00:00
parent 5bdf0aff81
commit 458cfcb48c

2
ir.c
View file

@ -2624,7 +2624,7 @@ bool ir_function_calculate_liferanges(ir_function *self)
if (v->memberof) {
ir_value *vec = v->memberof;
for (s = 0; s < vec_size(vec->reads); ++s) {
if (vec->reads[s]->eid == v->life[0].end)
if (vec->reads[s]->eid == vec->life[0].end)
break;
}
if (s < vec_size(vec->reads)) {