This is an archive of the discontinued LLVM Phabricator instance.

Move accurate-sample-profile into the function attribute.
ClosedPublic

Authored by danielcdh on Aug 24 2017, 9:32 AM.

Details

Summary

We need to have accurate-sample-profile in function attribute so that it works with LTO.

Event Timeline

danielcdh created this revision.Aug 24 2017, 9:32 AM
davidxl added inline comments.Aug 24 2017, 12:06 PM
lib/Analysis/ProfileSummaryInfo.cpp
42

I don't see the harm of keeping the internal option too?

davidxl edited edge metadata.Aug 24 2017, 12:07 PM

How can we test it works for ThinLTO? some end-to-end test is also desired (given that this becomes an external feature).

danielcdh marked an inline comment as done.Aug 24 2017, 1:19 PM

How can we test it works for ThinLTO? some end-to-end test is also desired (given that this becomes an external feature).

Added an end-to-end test in https://reviews.llvm.org/D37091

davidxl accepted this revision.Aug 24 2017, 1:53 PM

lgtm

This revision is now accepted and ready to land.Aug 24 2017, 1:53 PM
danielcdh closed this revision.Aug 24 2017, 2:38 PM