Revert "ThinLTO: fix non-determinism in bitcode writing"

This reverts commit r269634, bots are broken.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 269637
This commit is contained in:
Mehdi Amini 2016-05-16 09:04:50 +00:00
parent 973405bec5
commit fe97408495
1 changed files with 1 additions and 7 deletions

View File

@ -3177,14 +3177,8 @@ void ModuleBitcodeWriter::writePerModuleFunctionSummaryRecord(
NameVals.insert(NameVals.end(), Refs.begin(), Refs.end());
std::vector<FunctionSummary::EdgeTy> Calls = FS->calls();
std::sort(Calls.begin(), Calls.end(),
[this](FunctionSummary::EdgeTy &L, FunctionSummary::EdgeTy &R) {
return VE.getValueID(L.first.getValue()) <
VE.getValueID(R.first.getValue());
});
bool HasProfileData = F.getEntryCount().hasValue();
for (auto &ECI : Calls) {
for (auto &ECI : FS->calls()) {
NameVals.push_back(VE.getValueID(ECI.first.getValue()));
assert(ECI.second.CallsiteCount > 0 && "Expected at least one callsite");
NameVals.push_back(ECI.second.CallsiteCount);