This is an archive of the discontinued LLVM Phabricator instance.

Remove .hot and .unlikely prefixes from function section names
ClosedPublic

Authored by eraman on May 16 2016, 3:15 PM.

Details

Reviewers
davidxl
danielcdh
Summary

This removes the the use of .hot/.unlikely based on function hotness. This code currently relies on static methods in ProfileSummary to determine whether a function is hot or unlikley. I am refactoring the ProfileSummary code and these methods will be removed. As discussed offline, the right way to re-introduce this is to add a pass to annotate functions with unlikely/hot hints and use the hints to determine the prefix here.

Diff Detail

Event Timeline

eraman updated this revision to Diff 57408.May 16 2016, 3:15 PM
eraman retitled this revision from to Remove .hot and .unlikely prefixes from function section names.
eraman updated this object.
eraman added reviewers: danielcdh, davidxl.
eraman added a subscriber: llvm-commits.
danielcdh accepted this revision.May 16 2016, 4:44 PM
danielcdh edited edge metadata.
This revision is now accepted and ready to land.May 16 2016, 4:44 PM
eraman closed this revision.May 19 2016, 2:55 PM
lib/CodeGen/TargetLoweringObjectFileImpl.cpp