aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2022-12-06 17:05:18 -0800
committerEugene Rozenfeld <erozen@microsoft.com>2022-12-08 11:52:10 -0800
commit7410032a772a9e77b620b091c2b551b68113a179 (patch)
tree0f771e1f43d98e4e0110f389de513fb47a002bce /libgcc
parent5ddfe794405a514824382e96b1047d3195af23cc (diff)
downloadgcc-7410032a772a9e77b620b091c2b551b68113a179.zip
gcc-7410032a772a9e77b620b091c2b551b68113a179.tar.gz
gcc-7410032a772a9e77b620b091c2b551b68113a179.tar.bz2
Fix count comparison in ipa-cp
The existing comparison was incorrect for non-PRECISE counts (e.g., AFDO): we could end up with a 0 base_count, which could lead to asserts, e.g., in good_cloning_opportunity_p. Tested on x86_64-pc-linux-gnu. gcc/ChangeLog: PR ipa/108000 * ipa-cp.cc (ipcp_propagate_stage): Fix profile count comparison gcc/testsuite * gcc.dg/tree-prof/pr108000.c: Regression test
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions