OSDN Git Service

Remove .hot and .unlikely prefixes from function section names.
authorEaswaran Raman <eraman@google.com>
Mon, 16 May 2016 23:59:04 +0000 (23:59 +0000)
committerEaswaran Raman <eraman@google.com>
Mon, 16 May 2016 23:59:04 +0000 (23:59 +0000)
commit177be49d36d8667bdfcd84a969e75ca07b0c019e
tree263b0680175143e9febfe825cede26ecdc9fec93
parent350e40ffb255ba4e9460cf6875e19d7d0459f787
Remove .hot and .unlikely prefixes from function section names.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/partition-sections.ll [deleted file]