mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-16 09:30:09 +00:00
SamplePGO - Clear coverage tracking when clearing per-function data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
96bd946285
commit
b08070ce10
@ -188,6 +188,7 @@ public:
|
||||
unsigned computeCoverage(unsigned Used, unsigned Total) const;
|
||||
unsigned countUsedSamples(const FunctionSamples *Samples) const;
|
||||
unsigned countBodySamples(const FunctionSamples *Samples) const;
|
||||
void clear() { SampleCoverage.clear(); }
|
||||
|
||||
private:
|
||||
typedef DenseMap<LineLocation, unsigned> BodySampleCoverageMap;
|
||||
@ -285,6 +286,7 @@ void SampleProfileLoader::clearFunctionData() {
|
||||
LI = nullptr;
|
||||
Predecessors.clear();
|
||||
Successors.clear();
|
||||
CoverageTracker.clear();
|
||||
}
|
||||
|
||||
/// \brief Returns the offset of lineno \p L to head_lineno \p H
|
||||
|
Loading…
x
Reference in New Issue
Block a user