auto-profile.c (AFDO_EINFO): New macro.
authorBin Cheng <bin.cheng@linux.alibaba.com>
Fri, 14 Dec 2018 05:40:07 +0000 (05:40 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 14 Dec 2018 05:40:07 +0000 (05:40 +0000)
commit47b4c53f035502f1140ae6e286c4576faa57c7ea
tree9efe394f8e8344fae649f0f8aaeb36be2b0e7959
parent9ee465524042b1244ac20b3c1083d818c32d9bfc
auto-profile.c (AFDO_EINFO): New macro.

* auto-profile.c (AFDO_EINFO): New macro.
(class edge_info): New class.
(is_edge_annotated, set_edge_annotated): Delete.
(afdo_propagate_edge, afdo_propagate_circuit, afdo_propagate): Remove
parameter.  Adjust edge count computation and annotation using class
edge_info.
(afdo_calculate_branch_prob, afdo_annotate_cfg): Likewise.

From-SVN: r267119
gcc/ChangeLog
gcc/auto-profile.c