Repeat the optimization passes until we stop making progress.

This commit is contained in:
Eric Anholt
2010-04-08 13:42:48 -07:00
parent 6192434ac3
commit 2a7b2b22f4
2 changed files with 10 additions and 5 deletions

View File

@@ -307,7 +307,7 @@ can_inline(ir_call *call)
bool
do_function_inlining(exec_list *instructions)
{
bool progress;
bool progress = false;
foreach_iter(exec_list_iterator, iter, *instructions) {
ir_instruction *ir = (ir_instruction *)iter.get();