- workround for inline of got inlined: we cannot
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 15 Aug 2008 16:43:58 +0000 (16:43 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 15 Aug 2008 16:43:58 +0000 (16:43 +0000)
  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

index 315632d..60ff552 100644 (file)
@@ -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 */