Consider also negative edges in cycle detection.
authorMartin Liska <mliska@suse.cz>
Mon, 2 Sep 2019 07:06:54 +0000 (09:06 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 2 Sep 2019 07:06:54 +0000 (07:06 +0000)
commit9297e013293e4d332fc7c40859ea4dd9616e0d88
tree8b7389e6558c35f4068d435a5cce1f78cf8ad231
parentea323e9e926409ea4ea6317d81255b43020e4f1c
Consider also negative edges in cycle detection.

2019-09-02  Martin Liska  <mliska@suse.cz>

PR gcov-profile/91601
* gcov.c (path_contains_zero_cycle_arc): Rename to ...
(path_contains_zero_or_negative_cycle_arc): ... this and handle
also negative edges.
(circuit): Handle also negative edges as they can happen
in some situations.

From-SVN: r275291
gcc/ChangeLog
gcc/gcov.c