From: Bin Cheng Date: Fri, 14 Dec 2018 05:42:56 +0000 (+0000) Subject: auto-profile.c (afdo_indirect_call): Skip generating histogram value for internal... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f3477fb787cc885bfb11d2e8c8dae675a3129d0;p=gcc.git auto-profile.c (afdo_indirect_call): Skip generating histogram value for internal call. * auto-profile.c (afdo_indirect_call): Skip generating histogram value for internal call. From-SVN: r267120 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b59574863b3..cb5824a7caf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-14 Bin Cheng + + * auto-profile.c (afdo_indirect_call): Skip generating histogram + value for internal call. + 2018-12-14 Bin Cheng * auto-profile.c (AFDO_EINFO): New macro. diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 7e0020bc232..f51a4bf4ce1 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -987,7 +987,9 @@ afdo_indirect_call (gimple_stmt_iterator *gsi, const icall_target_map &map, if (map.size () == 0) return; gcall *stmt = dyn_cast (gs); - if ((!stmt) || gimple_call_fndecl (stmt) != NULL_TREE) + if (!stmt + || gimple_call_internal_p (stmt) + || gimple_call_fndecl (stmt) != NULL_TREE) return; callee = gimple_call_fn (stmt);