From 7313607478c11e9455a32fb0dbfd7867e04ea96a Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Thu, 7 Nov 2019 11:55:43 +0100 Subject: Remove gimple_call_types_likely_match_p (PR 70929) 2019-11-07 Martin Jambor PR lto/70929 * cif-code.def (MISMATCHED_ARGUMENTS): Removed. * cgraph.h (gimple_check_call_matching_types): Remove * cgraph.c (gimple_check_call_args): Likewise. (gimple_check_call_matching_types): Likewise. (symbol_table::create_edge): Do not call gimple_check_call_matching_types. (cgraph_edge::make_direct): Likewise. (cgraph_edge::redirect_call_stmt_to_callee): Likewise. * value-prof.h (check_ic_target): Remove. * value-prof.c (check_ic_target): Remove. (gimple_ic_transform): Do nat call check_ic_target. * auto-profile.c (function_instance::find_icall_target_map): Likewise. (afdo_indirect_call): Likewise. * ipa-prop.c (update_indirect_edges_after_inlining): Do not call gimple_check_call_matching_types. * ipa-inline.c (early_inliner): Likewise. testsuite/ * g++.dg/lto/pr70929_[01].C: New test. * gcc.dg/winline-10.c: Adjust for the fact that inlining happens. From-SVN: r277920 --- gcc/auto-profile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/auto-profile.c') diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index ee1a83a..4d8fb52 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -606,8 +606,6 @@ function_instance::find_icall_target_map (gcall *stmt, get_identifier (afdo_string_table->get_name (callee))); if (node == NULL) continue; - if (!check_ic_target (stmt, node)) - continue; (*map)[callee] = iter->second->total_count (); ret += iter->second->total_count (); } @@ -1034,7 +1032,7 @@ afdo_indirect_call (gimple_stmt_iterator *gsi, const icall_target_map &map, print_generic_expr (dump_file, direct_call->decl, TDF_SLIM); } - if (direct_call == NULL || !check_ic_target (stmt, direct_call)) + if (direct_call == NULL) { if (dump_file) fprintf (dump_file, " not transforming\n"); -- cgit v1.1