forked from OSchip/llvm-project
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:
parent
973405bec5
commit
fe97408495
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue