@@ -1370,37 +1370,6 @@ J9::CFG::computeInitialBlockFrequencyBasedOnExternalProfiler(TR::Compilation *co
1370
1370
_initialBlockFrequency = startFrequency;
1371
1371
}
1372
1372
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
-
1404
1373
void
1405
1374
J9::CFG::getInterpreterProfilerBranchCountersOnDoubleton (TR::CFGNode *cfgNode, int32_t *taken, int32_t *nottaken)
1406
1375
{
@@ -1446,29 +1415,6 @@ J9::CFG::getInterpreterProfilerBranchCountersOnDoubleton(TR::CFGNode *cfgNode, i
1446
1415
else
1447
1416
*nottaken = LOW_FREQ;
1448
1417
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
- */
1472
1418
if (comp ()->getOption (TR_TraceBFGeneration))
1473
1419
dumpOptDetails (comp ()," If with no profiling information on node %p has low branch counts: taken=%d, not taken=%d\n " , node, *taken, *nottaken);
1474
1420
}
0 commit comments