This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Ignore stack samples before aggregation
ClosedPublic

Authored by wlei on Oct 11 2021, 1:47 PM.

Details

Summary

With ignore-stack-samples, We can ignore the call stack before the samples aggregation which could reduce some redundant computations.

Diff Detail

Event Timeline

wlei created this revision.Oct 11 2021, 1:47 PM
wlei requested review of this revision.Oct 11 2021, 1:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 1:47 PM
wlei edited the summary of this revision. (Show Details)Oct 11 2021, 1:50 PM
wlei added reviewers: hoy, wenlei.
hoy accepted this revision.Oct 11 2021, 2:13 PM

Good catch, thanks.

llvm/tools/llvm-profgen/PerfReader.cpp
650–656

make this an else case?

This revision is now accepted and ready to land.Oct 11 2021, 2:13 PM
wlei updated this revision to Diff 378809.Oct 11 2021, 3:09 PM

moved into if branch

wenlei accepted this revision.Oct 12 2021, 8:41 AM

lgtm, thanks. do you see this making AutoFDO profile generation faster? and by how much?

wlei added a comment.Oct 12 2021, 12:42 PM

lgtm, thanks. do you see this making AutoFDO profile generation faster? and by how much?

Tested on clang-10 build, it can make profile generation a little bit faster, around 3%.

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