]> granicus.if.org Git - llvm/commit
Use isFunctionHotInCallGraph to set the function section prefix.
authorDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 23:14:11 +0000 (23:14 +0000)
committerDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 23:14:11 +0000 (23:14 +0000)
commit261eb1f850bb535094736586e57302729e5f669e
treebe32f303480e667d9d80b5b556a52d43c822a7eb
parentcfb0063c603b52ab6ca719d43348db457345086e
Use isFunctionHotInCallGraph to set the function section prefix.

Summary: The current prefix based function layout algorithm only looks at function's entry count, which is not sufficient. A function should be grouped together if its entry count or any call edge count is hot.

Reviewers: davidxl, eraman

Reviewed By: eraman

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31225

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298656 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ProfileSummaryInfo.h
lib/Analysis/ProfileSummaryInfo.cpp
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/section.ll