This is an archive of the discontinued LLVM Phabricator instance.

[PSI] Add the isCold query support with a given percentile value.
ClosedPublic

Authored by hjyamauchi on Feb 27 2020, 11:35 AM.

Details

Summary

This follows up D67377 that added the isHot side.

Diff Detail

Event Timeline

hjyamauchi created this revision.Feb 27 2020, 11:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2020, 11:35 AM

This is split from an upcoming PGSO patch that uses this.

I think it is possible to templatize the implementation to share implementation with isHot... interfaces.

Which functions are you referring to to be templatized?

For each isColdNthPercentil, there is a counter part in Hot -- the pair share mostly the same code and can be templatized.

Done. PTAL.

This revision is now accepted and ready to land.Feb 28 2020, 11:59 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Mar 2 2020, 5:53 PM

This broke check-lld on my linux bot: http://45.33.8.238/linux/11645/step_11.txt

Does that error make sense to you? Or do you think it's more likely that it's a bot problem?

thakis added a comment.Mar 2 2020, 6:51 PM

The error went away after a clean build, so I think it's unrelated to this change. Sorry for the noise!