aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer/lsan
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-11-28 19:42:45 +0100
committerJan Hubicka <jh@suse.cz>2021-11-28 19:42:45 +0100
commit2899d49e3701a4df18a336a680a7095cc99a2229 (patch)
tree3ffd9e2659002bf30d8c9f7179aa31b3b78f4bf7 /libsanitizer/lsan
parentd1471457fcda26cd24e0053b82f8eed35ddb8727 (diff)
downloadgcc-2899d49e3701a4df18a336a680a7095cc99a2229.zip
gcc-2899d49e3701a4df18a336a680a7095cc99a2229.tar.gz
gcc-2899d49e3701a4df18a336a680a7095cc99a2229.tar.bz2
Compare guessed and feedback frequencies during profile feedback stream-in
This patch adds simple code to dump and compare frequencies of basic blocks read from the profile feedback and frequencies guessed statically. It dumps basic blocks in the order of decreasing frequencies from feedback along with guessed frequencies and histograms. It makes it to possible spot basic blocks in hot regions that are considered cold by guessed profile or vice versa. I am trying to figure out how realistic our profile estimate is compared to read one on exchange2 (looking again into PR98782. There IRA now places spills into hot regions of code while with older (and worse) profile it did not. Catch is that the function is very large and has 9 nested loops, so it is hard to figure out how to improve the profile estimate and/or IRA. gcc/ChangeLog: 2021-11-28 Jan Hubicka <hubicka@ucw.cz> * profile.c: Include sreal.h (struct bb_stats): New. (cmp_stats): New function. (compute_branch_probabilities): Output bb stats.
Diffstat (limited to 'libsanitizer/lsan')
0 files changed, 0 insertions, 0 deletions