From 458cfcb48cbd5857b4ae9308e77a278dffead726 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 21 Jun 2013 23:54:09 +0000 Subject: [PATCH] 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? --- ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir.c b/ir.c index 09fa186..ea2e9cf 100644 --- a/ir.c +++ b/ir.c @@ -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)) { -- 2.39.2