mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00
SamplePGO - Use newly introduced local variable. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253868 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1bbb47859
commit
e5c2c47f2f
@ -236,7 +236,7 @@ SampleCoverageTracker::countUsedSamples(const FunctionSamples *Samples) const {
|
||||
for (const auto &I : Samples->getCallsiteSamples()) {
|
||||
const FunctionSamples *CalleeSamples = &I.second;
|
||||
if (CalleeSamples->getTotalSamples() > 0)
|
||||
Count += countUsedSamples(&I.second);
|
||||
Count += countUsedSamples(CalleeSamples);
|
||||
}
|
||||
|
||||
return Count;
|
||||
@ -255,7 +255,7 @@ SampleCoverageTracker::countBodySamples(const FunctionSamples *Samples) const {
|
||||
for (const auto &I : Samples->getCallsiteSamples()) {
|
||||
const FunctionSamples *CalleeSamples = &I.second;
|
||||
if (CalleeSamples->getTotalSamples() > 0)
|
||||
Count += countBodySamples(&I.second);
|
||||
Count += countBodySamples(CalleeSamples);
|
||||
}
|
||||
|
||||
return Count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user