Re: Use 'location_hash' for 'seen_locations' in 'gcc/profile.c:branch_prob' (was: [PATCH] Fix GCOV CFG related issues)

2021-11-09 Thread Martin Liška
On 11/9/21 15:29, Thomas Schwinge wrote: Hi! On 2018-07-25T15:40:24+0200, Martin Liška wrote: --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1256,6 +1256,8 @@ branch_prob (void) /* Initialize the output. */ output_location (NULL, 0, NULL, NULL); + hash_set > seen_locations;

Use 'location_hash' for 'seen_locations' in 'gcc/profile.c:branch_prob' (was: [PATCH] Fix GCOV CFG related issues)

2021-11-09 Thread Thomas Schwinge
Hi! On 2018-07-25T15:40:24+0200, Martin Liška wrote: > --- a/gcc/profile.c > +++ b/gcc/profile.c > @@ -1256,6 +1256,8 @@ branch_prob (void) >/* Initialize the output. */ >output_location (NULL, 0, NULL, NULL); > > + hash_set > seen_locations; > + >FOR_EACH_BB_FN (bb,

[PATCH] Fix GCOV CFG related issues.

2018-07-25 Thread Martin Liška
Hi. It fixes couple of very similar issues. Currently we handle GOTO expression, but it's not easy to find these in GIMPLE middle-end. The patch fixes that. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Will install in couple of days if no objection. Martin gcc/Chan