This is an archive of the discontinued LLVM Phabricator instance.

Use base discriminator in sample pgo profile matching.
ClosedPublic

Authored by danielcdh on Feb 21 2017, 11:00 AM.

Details

Summary

The discriminator has been encoded, and only the base discriminator should be used during profile matching.

Event Timeline

danielcdh created this revision.Feb 21 2017, 11:00 AM
davidxl edited edge metadata.Feb 23 2017, 9:24 AM

Is the modification of the existing tests good enough? Any standalone test needed?

dblaikie accepted this revision.Feb 23 2017, 9:29 AM

This seems good to me - so long as the tests would fail if the implementation was reverted. (I haven't thought about it hard enough - but it's possible in general that a test could fail with a new implementation, be updated to be compatible with the new implementation - but also be compatible with the old implementation, thus not acting as a regression test against the new implementation/functionality)

This revision is now accepted and ready to land.Feb 23 2017, 9:29 AM
davidxl accepted this revision.Feb 23 2017, 9:32 AM

lgtm

danielcdh closed this revision.Feb 23 2017, 10:39 AM