This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Warn for empty LBR of hybrid sample instead of error
AbandonedPublic

Authored by wlei on Dec 15 2021, 7:33 PM.

Details

Reviewers
hoy
wenlei
Summary

Warn for the missing LBR sample case instead of error, it should allow processing the remaining samples.

Diff Detail

Unit TestsFailed

Event Timeline

wlei created this revision.Dec 15 2021, 7:33 PM
wlei requested review of this revision.Dec 15 2021, 7:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2021, 7:33 PM
wlei edited the summary of this revision. (Show Details)Dec 15 2021, 7:36 PM
wlei added reviewers: hoy, wenlei.

Wondering why we would have such cases?

wlei added a comment.EditedDec 15 2021, 8:30 PM

Wondering why we would have such cases?

ok..It turned out I used the incomplete input, the last sample is truncated like:

106db8f0
cf481a1
cf47ec7
106c0fc7
106c0cbb
106c0c3c
cf444df
cf458e9
ceef560
ceecfb8
ceea6ae
cee7ced
cef70ad
cf2b

The complete sample in the service won't have the case. so seems we don't need this.

Wondering why we would have such cases?

ok..It turned out I used the incomplete input, the last sample is truncated like:

106db8f0
cf481a1
cf47ec7
106c0fc7
106c0cbb
106c0c3c
cf444df
cf458e9
ceef560
ceecfb8
ceea6ae
cee7ced
cef70ad
cf2b

The complete sample in the service won't have the case. so seems we don't need this.

Ok, then it probably makes more sense to treat it as error still.

wlei abandoned this revision.Dec 15 2021, 9:25 PM

Wondering why we would have such cases?

ok..It turned out I used the incomplete input, the last sample is truncated like:

106db8f0
cf481a1
cf47ec7
106c0fc7
106c0cbb
106c0c3c
cf444df
cf458e9
ceef560
ceecfb8
ceea6ae
cee7ced
cef70ad
cf2b

The complete sample in the service won't have the case. so seems we don't need this.

Ok, then it probably makes more sense to treat it as error still.

Sounds good, abandoning it.