ipa-inline.c (report_inline_failed_reason): Look into thunks, too
authorJan Hubicka <hubicka@ucw.cz>
Mon, 16 May 2016 09:56:19 +0000 (11:56 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 16 May 2016 09:56:19 +0000 (09:56 +0000)
* ipa-inline.c (report_inline_failed_reason): Look into thunks, too
(inline_small_functions): Do not look for function symbol when resetting
caches.

From-SVN: r236271

gcc/ChangeLog
gcc/ipa-inline.c

index 2bbd60e12c82b739e45d196520a92d1823e9d080..8b09e24b552c7439993c781a8006c79a777d7a8e 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
+       (inline_small_functions): Do not look for function symbol when resetting
+       caches.
+
 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
index a5c5c9b382bac6dad8806d990e7316bba7f7a42a..7f0761607b5d9f6538dbbb60a632e5a606241c74 100644 (file)
@@ -233,11 +233,11 @@ report_inline_failed_reason (struct cgraph_edge *e)
       if ((e->inline_failed == CIF_TARGET_OPTION_MISMATCH
           || e->inline_failed == CIF_OPTIMIZATION_MISMATCH)
          && e->caller->lto_file_data
-         && e->callee->function_symbol ()->lto_file_data)
+         && e->callee->ultimate_alias_target ()->lto_file_data)
        {
          fprintf (dump_file, "  LTO objects: %s, %s\n",
                   e->caller->lto_file_data->file_name,
-                  e->callee->function_symbol ()->lto_file_data->file_name);
+                  e->callee->ultimate_alias_target ()->lto_file_data->file_name);
        }
       if (e->inline_failed == CIF_TARGET_OPTION_MISMATCH)
        cl_target_option_print_diff
@@ -2027,7 +2027,7 @@ inline_small_functions (void)
          inline_call (edge, true, &new_indirect_edges, &overall_size, true);
          add_new_edges_to_heap (&edge_heap, new_indirect_edges);
 
-         reset_edge_caches (edge->callee->function_symbol ());
+         reset_edge_caches (edge->callee);
 
          update_callee_keys (&edge_heap, where, updated_nodes);
        }