This is an archive of the discontinued LLVM Phabricator instance.

Set function entry count.
Needs ReviewPublic

Authored by dnovillo on May 26 2015, 9:58 AM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
dexonsmith
Summary

I don't particularly like this approach.

The change in linkage for link once symbols is needed for ELF targets.
Although the symbol is only associated once, the discarded symbols
still occupy memory. This causes duplicate count problem at runtime
because the raw profile contains multiple copies of the same data
record (see https://llvm.org/bugs/show_bug.cgi?id=23499 for details).

Diff Detail

Event Timeline

dnovillo updated this revision to Diff 26519.May 26 2015, 9:58 AM
dnovillo retitled this revision from to Set function entry count..
dnovillo updated this object.
dnovillo edited the test plan for this revision. (Show Details)
dnovillo added a reviewer: dexonsmith.
dnovillo added a subscriber: Unknown Object (MLST).

As we commented in IRC this isn't going to be the correct way to do it. I've updated the PR accordingly and we should go ahead with that solution. Probably want to close this revision.

Thanks!

-eric

dexonsmith resigned from this revision.Oct 6 2020, 3:37 PM