Add prefix based function layout when profile is available.
authorDehao Chen <dehao@google.com>
Tue, 23 Feb 2016 03:39:24 +0000 (03:39 +0000)
committerDehao Chen <dehao@google.com>
Tue, 23 Feb 2016 03:39:24 +0000 (03:39 +0000)
commitf84b6300445e726f318ecafd8fec4048a7af1d6e
treee845b45480f5a34a21b60416beacdbe3cb7d43c3
parentc00718fd8e19eb078a9d263c1e59587fbfd6b00a
Add prefix based function layout when profile is available.

Summary: If a function is hot, put it in text.hot section.

Reviewers: davidxl

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D17532

llvm-svn: 261607
llvm/include/llvm/ProfileData/ProfileCommon.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/ProfileData/ProfileSummary.cpp
llvm/test/CodeGen/X86/partition-sections.ll [new file with mode: 0644]