aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2023-03-14 18:53:16 +0100
committerMartin Jambor <mjambor@suse.cz>2023-03-14 18:56:13 +0100
commit68ba253bda74d6c6e77726d98184a6faee5e7337 (patch)
treeb859ac40a8b5e034842fe6bdec2cbf8342835ead /gcc/fortran
parent4bcc3b5cc87505d13cda82846db2e223a9b41f79 (diff)
downloadgcc-68ba253bda74d6c6e77726d98184a6faee5e7337.zip
gcc-68ba253bda74d6c6e77726d98184a6faee5e7337.tar.gz
gcc-68ba253bda74d6c6e77726d98184a6faee5e7337.tar.bz2
ipa-cp: Fix various issues in update_specialized_profile (PR 107925)
The patch below fixes various issues in function update_specialized_profile. The main is removal of the assert which is bogus in the case of recursive cloning. The division of unexplained counts is guesswork, which then leads to updates of counts of recursive edges, which then can be redirected to the new clone and their count subtracted from the count and there simply may not be enough left in the count of the original node - especially when we clone a lot because of using --param ipa-cp-eval-threshold=1. The other issue was omission to drop the count of the original node to ipa count. And when calculating the remainder, we should use lenient_count_portion_handling to account for partial train runs. Finally, the patch adds dumping of the original count which I think is useful. gcc/ChangeLog: 2023-02-17 Martin Jambor <mjambor@suse.cz> PR ipa/107925 * ipa-cp.cc (update_specialized_profile): Drop orig_node_count to ipa count, remove assert, lenient_count_portion_handling, dump also orig_node_count.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions