mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-10 10:01:30 +00:00
[ThinLTO] Rename edges() to calls() for clarity (NFC)
Helps distinguish from refs() which iterates over non-call references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91af31a4e8
commit
947ecf3d6a
@ -162,8 +162,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Return the list of <CalleeGUID, ProfileCount> pairs.
|
/// Return the list of <CalleeGUID, ProfileCount> pairs.
|
||||||
std::vector<EdgeTy> &edges() { return CallGraphEdgeList; }
|
std::vector<EdgeTy> &calls() { return CallGraphEdgeList; }
|
||||||
const std::vector<EdgeTy> &edges() const { return CallGraphEdgeList; }
|
const std::vector<EdgeTy> &calls() const { return CallGraphEdgeList; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \brief Global variable summary information to aid decisions and
|
/// \brief Global variable summary information to aid decisions and
|
||||||
|
@ -2863,7 +2863,7 @@ static void WritePerModuleFunctionSummaryRecord(
|
|||||||
NameVals.push_back(RI);
|
NameVals.push_back(RI);
|
||||||
|
|
||||||
bool HasProfileData = F.getEntryCount().hasValue();
|
bool HasProfileData = F.getEntryCount().hasValue();
|
||||||
for (auto &ECI : FS->edges()) {
|
for (auto &ECI : FS->calls()) {
|
||||||
NameVals.push_back(ECI.first);
|
NameVals.push_back(ECI.first);
|
||||||
assert(ECI.second.CallsiteCount > 0 && "Expected at least one callsite");
|
assert(ECI.second.CallsiteCount > 0 && "Expected at least one callsite");
|
||||||
NameVals.push_back(ECI.second.CallsiteCount);
|
NameVals.push_back(ECI.second.CallsiteCount);
|
||||||
@ -3089,13 +3089,13 @@ static void WriteCombinedGlobalValueSummary(
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool HasProfileData = false;
|
bool HasProfileData = false;
|
||||||
for (auto &EI : FS->edges()) {
|
for (auto &EI : FS->calls()) {
|
||||||
HasProfileData |= EI.second.ProfileCount != 0;
|
HasProfileData |= EI.second.ProfileCount != 0;
|
||||||
if (HasProfileData)
|
if (HasProfileData)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &EI : FS->edges()) {
|
for (auto &EI : FS->calls()) {
|
||||||
const auto &VMI = GUIDToValueIdMap.find(EI.first);
|
const auto &VMI = GUIDToValueIdMap.find(EI.first);
|
||||||
// If this GUID doesn't have an entry, it doesn't have a function
|
// If this GUID doesn't have an entry, it doesn't have a function
|
||||||
// summary and we don't need to record any calls to it.
|
// summary and we don't need to record any calls to it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user