From a0ef602ed410bf9c6767972484ef44a27ba4d8c8 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 15 Aug 2008 16:43:58 +0000 Subject: [PATCH] - 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] --- ir/opt/opt_inline.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.20.1