for liferange calc: the block we start from must tart with an empty set of living values

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-22 16:20:26 +02:00
parent eb86a3d7a3
commit 5d884bcb45

1
ir.c
View file

@ -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;
}