auto-profile.c (afdo_indirect_call): Skip generating histogram value if we can't...
authorBin Cheng <bin.cheng@linux.alibaba.com>
Wed, 19 Dec 2018 02:25:48 +0000 (02:25 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 19 Dec 2018 02:25:48 +0000 (02:25 +0000)
commit4469188ce7f228902629595941e1c2ff24b9c4d6
treeaa059a871483743547d34a928ed13ef753272f28
parent0fb778bcdac1f7c012215971d65edd91d02f606e
auto-profile.c (afdo_indirect_call): Skip generating histogram value if we can't find cgraph_node for then...

* auto-profile.c (afdo_indirect_call): Skip generating histogram
value if we can't find cgraph_node for then indirected callee.  Save
profile_id of the cgraph_node in histogram value's first counter.
* value-prof.c (gimple_value_profile_transformations): Don't skip
for flag_auto_profile.

From-SVN: r267249
gcc/ChangeLog
gcc/auto-profile.c
gcc/value-prof.c