* auto-profile.c (afdo_indirect_call): Skip generating histogram
value for internal call.
From-SVN: r267120
+2018-12-14 Bin Cheng <bin.cheng@linux.alibaba.com>
+
+ * auto-profile.c (afdo_indirect_call): Skip generating histogram
+ value for internal call.
+
2018-12-14 Bin Cheng <bin.cheng@linux.alibaba.com>
* auto-profile.c (AFDO_EINFO): New macro.
if (map.size () == 0)
return;
gcall *stmt = dyn_cast <gcall *> (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);