aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-patterns.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-06-30 09:46:48 +0200
committerRichard Biener <rguenther@suse.de>2023-06-30 10:38:14 +0200
commit18e5aeaef294428fc8458c2c70a9ac3a537c35d6 (patch)
treee5b06c8f311686e420828f58f096f67fbe5b3430 /gcc/tree-vect-patterns.cc
parentf7e3123638712773e8c01e17aae9dc64d9342016 (diff)
downloadgcc-18e5aeaef294428fc8458c2c70a9ac3a537c35d6.zip
gcc-18e5aeaef294428fc8458c2c70a9ac3a537c35d6.tar.gz
gcc-18e5aeaef294428fc8458c2c70a9ac3a537c35d6.tar.bz2
middle-end/110489 - avoid useless work on statistics
When we call statistics_fini_pass we unconditionally allocate the statistics hash and traverse it. When a TU has many small functions this can take considerable time. The following avoids this by never allocating the hash from this function. PR middle-end/110489 * statistics.cc (curr_statistics_hash): Add argument indicating whether we should allocate the hash. (statistics_fini_pass): If the hash isn't allocated only print the summary header.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions