[llvm] r253868 - SamplePGO - Use newly introduced local variable. NFC.
Diego Novillo via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 23 07:24:13 PST 2015
Author: dnovillo
Date: Mon Nov 23 09:24:13 2015
New Revision: 253868
URL: http://llvm.org/viewvc/llvm-project?rev=253868&view=rev
Log:
SamplePGO - Use newly introduced local variable. NFC.
Modified:
llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
Modified: llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp?rev=253868&r1=253867&r2=253868&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp Mon Nov 23 09:24:13 2015
@@ -236,7 +236,7 @@ SampleCoverageTracker::countUsedSamples(
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(
for (const auto &I : Samples->getCallsiteSamples()) {
const FunctionSamples *CalleeSamples = &I.second;
if (CalleeSamples->getTotalSamples() > 0)
- Count += countBodySamples(&I.second);
+ Count += countBodySamples(CalleeSamples);
}
return Count;
More information about the llvm-commits
mailing list