Hello. This fixes majority of autoFDO test-cases.
Patch can boostrap and survives regression tests. Ready for trunk? Thanks, Martin gcc/ChangeLog: 2017-07-11 Martin Liska <mli...@suse.cz> * auto-profile.c (afdo_annotate_cfg): Assign zero counts to BBs and edges seen by autoFDO. --- gcc/auto-profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 71c06f30449..334f38be109 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1547,9 +1547,9 @@ afdo_annotate_cfg (const stmt_set &promoted_stmts) edge e; edge_iterator ei; - bb->count = profile_count::uninitialized (); + bb->count = profile_count::zero ().afdo (); FOR_EACH_EDGE (e, ei, bb->succs) - e->count = profile_count::uninitialized (); + e->count = profile_count::zero ().afdo (); if (afdo_set_bb_count (bb, promoted_stmts)) set_bb_annotated (bb, &annotated_bb);