]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
for liferange calc: the block we start from must tart with an empty set of living...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 14:20:26 +0000 (16:20 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 14:20:26 +0000 (16:20 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 1f09a9a17d223ca4bee7389e538473c2f6cfa22e..0dc785a0d4b565d6008df65e2ac13b9f75ddcc3f 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -1812,6 +1812,7 @@ bool ir_function_calculate_liferanges(ir_function *self)
         {
             if (self->blocks[i]->is_return)
             {
+                self->blocks[i]->living_count = 0;
                 if (!ir_block_life_propagate(self->blocks[i], NULL, &changed))
                     return false;
             }