This is an archive of the discontinued LLVM Phabricator instance.

[CSSPGO][NFC] Replace SampleProfileLoader::ProfileIsCS with FunctionSamples::ProfileIsCS.
ClosedPublic

Authored by hoy on May 2 2022, 10:58 AM.

Details

Summary

The two fields have the same meaning. Their values come from the reader. Therefore I'm removing one.

Diff Detail

Event Timeline

hoy created this revision.May 2 2022, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2022, 10:58 AM
hoy requested review of this revision.May 2 2022, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2022, 10:58 AM
wenlei added inline comments.May 3 2022, 6:21 PM
llvm/lib/Transforms/IPO/SampleProfile.cpp
2039

Any reason to avoid using FunctionSamples::ProfileIsCS here?

hoy added inline comments.May 3 2022, 6:23 PM
llvm/lib/Transforms/IPO/SampleProfile.cpp
2039

Just to be consistent with other checks right above.

wenlei accepted this revision.May 3 2022, 6:24 PM

lgtm, thanks.

This revision is now accepted and ready to land.May 3 2022, 6:24 PM
This revision was landed with ongoing or failed builds.May 3 2022, 6:42 PM
This revision was automatically updated to reflect the committed changes.