This is an archive of the discontinued LLVM Phabricator instance.

Additional stats about memcpy
AbandonedPublic

Authored by tejohnson on May 4 2017, 11:49 AM.

Details

Reviewers
davidxl
danielcdh
Summary

Restrict call metadata based hotness detection to Sample PGO mode

Don't use the metadata on call instructions for determining hotness
unless we are in sample PGO mode, where it is needed because profile
counts are not accurate. In instrumentation mode this is not necessary
and does more harm than good when calls have VP metadata that hasn't
been properly scaled after transformations or dropped after constant
prop based devirtualization (both should be fixed, but we don't need
to do this in the first place for instrumentation PGO).

This required adjusting a number of tests to distinguish between sample
and instrumentation PGO handling.

Event Timeline

tejohnson created this revision.May 4 2017, 11:49 AM
tejohnson abandoned this revision.May 4 2017, 11:52 AM

Looks like I had some other changes in this client - let me remove those and create a new patch