Revert "Add prefix based function layout when profile is available."

This reverts commit r261582, since this bot has been broken for four
hours:
http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_check/19399/

llvm-svn: 261604
This commit is contained in:
Duncan P. N. Exon Smith
2016-02-23 02:28:40 +00:00
parent 4e796d0c9f
commit b3613fce19
4 changed files with 0 additions and 76 deletions

View File

@@ -34,7 +34,6 @@
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCValue.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/ProfileData/ProfileCommon.h"
#include "llvm/Support/COFF.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/ELF.h"
@@ -245,11 +244,6 @@ static StringRef getSectionPrefixForGlobal(SectionKind Kind) {
return ".data.rel.ro";
}
static cl::opt<bool> GroupFunctionsByHotness(
"group-functions-by-hotness",
llvm::cl::desc("Partition hot/cold functions by sections prefix"),
cl::init(false));
static MCSectionELF *
selectELFSectionForGlobal(MCContext &Ctx, const GlobalValue *GV,
SectionKind Kind, Mangler &Mang,
@@ -302,16 +296,6 @@ selectELFSectionForGlobal(MCContext &Ctx, const GlobalValue *GV,
Name = getSectionPrefixForGlobal(Kind);
}
if (GroupFunctionsByHotness) {
if (const Function *F = dyn_cast<Function>(GV)) {
if (ProfileSummary::isFunctionHot(F)) {
Name += getHotSectionPrefix();
} else if (ProfileSummary::isFunctionUnlikely(F)) {
Name += getUnlikelySectionPrefix();
}
}
}
if (EmitUniqueSection && UniqueSectionNames) {
Name.push_back('.');
TM.getNameWithPrefix(Name, GV, Mang, true);