This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Always generate line-number based profile under --fill-zero-for-all-funcs
AbandonedPublic

Authored by hoy on Jan 24 2022, 11:12 AM.

Details

Reviewers
wenlei
Summary

The swtich --fill-zero-for-all-funcs is used to generate an empty profile that can be used by downstream tools to compute an inline deicison tree out of a binary. Since the probe-based non-cs profile generation is not supported, I'm making it fall back to line-based profile generation.

Diff Detail

Event Timeline

hoy created this revision.Jan 24 2022, 11:12 AM
hoy requested review of this revision.Jan 24 2022, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2022, 11:12 AM
hoy edited the summary of this revision. (Show Details)Jan 24 2022, 11:15 AM
hoy added a reviewer: wenlei.

Can we just use -use-dwarf-correlation to skip pseudo-probe decoding and go through dwarf path for this purpose? Using -fill-zero-for-all-funcs switch to decide whether we use probe can be confusing.

hoy added a comment.Jan 24 2022, 11:27 AM

Can we just use -use-dwarf-correlation to skip pseudo-probe decoding and go through dwarf path for this purpose? Using -fill-zero-for-all-funcs switch to decide whether we use probe can be confusing.

Oh that works. I forgot about such a switch. Thanks for reminding.

hoy abandoned this revision.Jan 24 2022, 11:27 AM