This is an archive of the discontinued LLVM Phabricator instance.

[Profile] show distribution/histogram of indirect call profiles
ClosedPublic

Authored by davidxl on Sep 20 2016, 1:48 PM.

Details

Reviewers
vsk
Summary

With collected value profile data, it is useful to see statistics such as how many value sites have <N> target values. This simple patch adds that support and dumps it as part of profile summary.

Diff Detail

Event Timeline

davidxl updated this revision to Diff 71980.Sep 20 2016, 1:48 PM
davidxl retitled this revision from to [Profile] show distribution/histogram of indirect call profiles.
davidxl updated this object.
davidxl added a reviewer: vsk.
davidxl added a subscriber: llvm-commits.
vsk accepted this revision.Sep 20 2016, 1:52 PM
vsk edited edge metadata.

Seems straightforward. LGTM.

This revision is now accepted and ready to land.Sep 20 2016, 1:52 PM

For reference, xalanbmk IC histogram:

NumTargets, SiteCount
1, 1360
2, 73
3, 16
4, 4
5, 2
6, 3
7, 1
8, 9

dealII:

IC Value histogram :
NumTargets, SiteCount
1, 93
2, 13

povray:

IC Value histogram :
NumTargets, SiteCount
1, 30
2, 6
3, 2
4, 1
5, 2
6, 6
7, 1
8, 1

omnetpp:

IC Value histogram :
NumTargets, SiteCount
1, 181
2, 12
3, 4
4, 1
5, 0
6, 0
7, 3
8, 3

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r282017.