This is an archive of the discontinued LLVM Phabricator instance.

[CSSPGO] Turn off PseudoProbeUpdatePass for non-FDO builds.
ClosedPublic

Authored by hoy on Oct 14 2021, 3:33 PM.

Details

Summary

PseudoProbeUpdatePass is used to distribute sample counts among dulplicated probes. It doesn't make sense for it to run without a sample profile. The pass takes 1% of the build time.

Diff Detail

Event Timeline

hoy created this revision.Oct 14 2021, 3:33 PM
hoy requested review of this revision.Oct 14 2021, 3:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 3:33 PM
wenlei accepted this revision.Oct 14 2021, 3:36 PM

lgtm.

llvm/lib/Passes/PassBuilderPipelines.cpp
1262–1263

linter might complain the length of the line.

This revision is now accepted and ready to land.Oct 14 2021, 3:36 PM
hoy added inline comments.Oct 14 2021, 4:01 PM
llvm/lib/Passes/PassBuilderPipelines.cpp
1262–1263

Interestingly, linter is actually fine with this. The lint build job just passed. My local linting doesn't do anything about it. I guess the linting rule has changed?

hoy updated this revision to Diff 379890.Oct 14 2021, 5:12 PM

Fixing linter issue.

wlei accepted this revision.Oct 14 2021, 5:16 PM

LGTM, thanks!

This revision was landed with ongoing or failed builds.Oct 14 2021, 5:29 PM
This revision was automatically updated to reflect the committed changes.