This is an archive of the discontinued LLVM Phabricator instance.

[FS-AFDO] Generate pseudo-probe-based profiles with FS-discriminators.
ClosedPublic

Authored by hoy on Apr 10 2023, 11:45 AM.

Details

Summary

This change enables generating pseudo-probe-based FS-AFDO profiles. The change is straightforward based-on previous change D147651: [PseudoProbe] Encode/Decode FS discriminator by just injecting FS-discriminators into various profile generation spot.

Diff Detail

Event Timeline

hoy created this revision.Apr 10 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 11:45 AM
hoy requested review of this revision.Apr 10 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 11:45 AM
hoy retitled this revision from [FS-AFDO] Generate probe-based profiles with discriminators. to [FS-AFDO] Generate pseudo-probe-based profiles with FS-discriminators..Apr 10 2023, 11:53 AM
hoy edited the summary of this revision. (Show Details)
hoy added reviewers: wenlei, wlei, xur.
wenlei added inline comments.May 8 2023, 5:54 PM
llvm/include/llvm/MC/MCPseudoProbe.h
132 ↗(On Diff #512208)

nit: this should be moved to the previous patch

llvm/tools/llvm-profgen/ProfileGenerator.cpp
1178

This is because we used discriminator of call to hold call probe id, so we have no place for actual discriminator, right?

hoy added inline comments.May 9 2023, 11:54 AM
llvm/include/llvm/MC/MCPseudoProbe.h
132 ↗(On Diff #512208)

Done.

llvm/tools/llvm-profgen/ProfileGenerator.cpp
1178

Exactly.

hoy updated this revision to Diff 520779.May 9 2023, 11:54 AM

Updating D147957: [FS-AFDO] Generate pseudo-probe-based profiles with FS-discriminators.

wenlei accepted this revision.May 10 2023, 9:43 AM

lgtm, thanks.

This revision is now accepted and ready to land.May 10 2023, 9:43 AM
This revision was landed with ongoing or failed builds.May 10 2023, 11:34 AM
This revision was automatically updated to reflect the committed changes.