From: Michael Beck Date: Fri, 15 Aug 2008 16:43:58 +0000 (+0000) Subject: - workround for inline of got inlined: we cannot X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a0ef602ed410bf9c6767972484ef44a27ba4d8c8;p=libfirm - workround for inline of got inlined: we cannot optimize graphs that might still be inlined because the meta-information is invalided then, do that as an additional step [r21200] --- diff --git a/ir/opt/opt_inline.c b/ir/opt/opt_inline.c index 315632d80..60ff552ec 100644 --- a/ir/opt/opt_inline.c +++ b/ir/opt/opt_inline.c @@ -2164,6 +2164,12 @@ void inline_functions(int maxsize, int inline_threshold) { curr_call = curr_call->next; } + } + + for (i = 0; i < n_irgs; ++i) { + ir_graph *irg = get_irp_irg(i); + + env = get_irg_link(irg); if (env->got_inline) { /* this irg got calls inlined: optimize it */