loop-iv.c (simplify_using_initial_values): Fix oversight in previous change; avoid a memory leak when returning early.

* loop-iv.c (simplify_using_initial_values): Fix oversight in previous
	change; avoid a memory leak when returning early.

From-SVN: r122346
This commit is contained in:
Bernd Schmidt 2007-02-26 23:42:43 +00:00 committed by Bernd Schmidt
parent 31cd73eb52
commit 4898239452
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
* loop-iv.c (simplify_using_initial_values): Fix oversight in previous
change; avoid a memory leak when returning early.
2007-02-26 Mark Mitchell <mark@codesourcery.com>
* c-decl.c (static_ctors): Move to c-common.c.

View File

@ -1812,7 +1812,10 @@ simplify_using_initial_values (struct loop *loop, enum rtx_code op, rtx *expr)
return;
}
if (for_each_rtx (expr, altered_reg_used, altered))
return;
{
FREE_REG_SET (altered);
return;
}
}
if (!single_pred_p (e->src)