This is an archive of the discontinued LLVM Phabricator instance.

[CSSPGO] Always use callsite samples as callsite probe counts.
ClosedPublic

Authored by hoy on Mar 5 2021, 6:02 PM.

Details

Summary

For CS profile, the callsite count of previously inlined callees is populated with the entry count of the callees. Therefore when trying to get a weight for calliste probe after inlinining, the callsite count should always be used. The same fix has already been made for non-probe case.

Diff Detail

Event Timeline

hoy created this revision.Mar 5 2021, 6:02 PM
hoy requested review of this revision.Mar 5 2021, 6:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2021, 6:02 PM
wenlei accepted this revision.Mar 5 2021, 8:16 PM
wenlei added inline comments.
llvm/lib/Transforms/IPO/SampleProfile.cpp
527

nit: format the comment to be consistent with the probe version.

This revision is now accepted and ready to land.Mar 5 2021, 8:16 PM
hoy updated this revision to Diff 328893.Mar 7 2021, 12:32 PM

Adderssing Wenlei's comment.