This is an archive of the discontinued LLVM Phabricator instance.

Add isHotBB helper function to ProfileSummaryInfo
ClosedPublic

Authored by danielcdh on Nov 7 2016, 10:05 AM.

Event Timeline

danielcdh updated this revision to Diff 77052.Nov 7 2016, 10:05 AM
danielcdh retitled this revision from to Add isHot{Cold}BB API to ProfileSummaryInfo.
danielcdh updated this object.
danielcdh added reviewers: davidxl, eraman.
danielcdh added a subscriber: llvm-commits.
davidxl added inline comments.Nov 9 2016, 2:07 PM
lib/Analysis/ProfileSummaryInfo.cpp
134

I think it is better to document the behavior this way:

The query currently has false positives as branch instruction cloning does not update/scale branch weights. Unlike false negatives, this won't cause performance problem.

danielcdh retitled this revision from Add isHot{Cold}BB API to ProfileSummaryInfo to Add isHotBB helper function to ProfileSummaryInfo.Nov 9 2016, 3:16 PM
davidxl accepted this revision.Nov 9 2016, 3:37 PM
davidxl edited edge metadata.

lgtm

This revision is now accepted and ready to land.Nov 9 2016, 3:37 PM
danielcdh closed this revision.Nov 9 2016, 3:45 PM