diff options
author | Sergei Trofimovich <siarheit@google.com> | 2022-04-15 08:35:27 +0100 |
---|---|---|
committer | Sergei Trofimovich <siarheit@google.com> | 2022-04-19 20:06:47 +0100 |
commit | 90a29845bfe7d6002e6c2fd49a97820b00fbc4a3 (patch) | |
tree | 89a3500f16d78a76926a6dfc03524834f94528f8 /libgo | |
parent | b85abacd902813daec5e44b97f275eb88caaf715 (diff) | |
download | gcc-90a29845bfe7d6002e6c2fd49a97820b00fbc4a3.zip gcc-90a29845bfe7d6002e6c2fd49a97820b00fbc4a3.tar.gz gcc-90a29845bfe7d6002e6c2fd49a97820b00fbc4a3.tar.bz2 |
gcov-profile: Allow negative counts of indirect calls [PR105282]
TOPN metrics are histograms that contain overall count and per-bucket
count. Overall count can be negative when two profiles merge and some
of per-bucket metrics are disacarded.
Noticed as an ICE on python PGO build where gcc crashes as:
during IPA pass: modref
a.c:36:1: ICE: in stream_out_histogram_value, at value-prof.cc:340
36 | }
| ^
stream_out_histogram_value(output_block*, histogram_value_t*)
gcc/value-prof.cc:340
gcc/ChangeLog:
PR gcov-profile/105282
* value-prof.cc (stream_out_histogram_value): Allow negative counts
on HIST_TYPE_INDIR_CALL.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions