Skip to content

Commit 4eeb05b

Browse files
authored
Merge pull request #21911 from mpirvu/getParentCallCount
Remove unused getParentCallCount() method
2 parents 9dd36a5 + adedeca commit 4eeb05b

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

runtime/compiler/infra/J9Cfg.cpp

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,37 +1370,6 @@ J9::CFG::computeInitialBlockFrequencyBasedOnExternalProfiler(TR::Compilation *co
13701370
_initialBlockFrequency = startFrequency;
13711371
}
13721372

1373-
1374-
static int32_t
1375-
getParentCallCount(TR::CFG *cfg, TR::Node *node)
1376-
{
1377-
if (node->getByteCodeInfo().getCallerIndex() >=-1)
1378-
{
1379-
int32_t parentSiteIndex = node->getInlinedSiteIndex();
1380-
1381-
if (parentSiteIndex >= 0)
1382-
{
1383-
TR_InlinedCallSite & site = cfg->comp()->getInlinedCallSite(parentSiteIndex);
1384-
int32_t callCount = cfg->comp()->fej9()->getIProfilerCallCount(site._byteCodeInfo, cfg->comp());
1385-
1386-
if (callCount != 0)
1387-
return callCount;
1388-
}
1389-
}
1390-
else
1391-
{ // It's a dummy block in estimate code size
1392-
// The called frequency is set by estimate code size because at that time
1393-
// we don't have the final caller information.
1394-
int32_t callCount = cfg->_calledFrequency;
1395-
1396-
if (callCount != 0)
1397-
return callCount;
1398-
}
1399-
1400-
return 0;
1401-
}
1402-
1403-
14041373
void
14051374
J9::CFG::getInterpreterProfilerBranchCountersOnDoubleton(TR::CFGNode *cfgNode, int32_t *taken, int32_t *nottaken)
14061375
{
@@ -1446,29 +1415,6 @@ J9::CFG::getInterpreterProfilerBranchCountersOnDoubleton(TR::CFGNode *cfgNode, i
14461415
else
14471416
*nottaken = LOW_FREQ;
14481417

1449-
/*int32_t sumFreq = summarizeFrequencyFromPredecessors(cfgNode, this);
1450-
1451-
if (sumFreq>0)
1452-
{
1453-
*nottaken = sumFreq>>1;
1454-
*taken = *nottaken;
1455-
}
1456-
else
1457-
{
1458-
if (node->getByteCodeIndex()==0)
1459-
{
1460-
int32_t callCount = getParentCallCount(this, node);
1461-
1462-
// we don't know what the call count is, assign some
1463-
// moderate frequency
1464-
if (callCount<=0)
1465-
callCount = AVG_FREQ;
1466-
1467-
*taken = 0;
1468-
*nottaken = callCount;
1469-
}
1470-
}
1471-
*/
14721418
if (comp()->getOption(TR_TraceBFGeneration))
14731419
dumpOptDetails(comp(),"If with no profiling information on node %p has low branch counts: taken=%d, not taken=%d\n", node, *taken, *nottaken);
14741420
}

0 commit comments

Comments
 (0)