File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -438,12 +438,6 @@ class SplitGraph::Node {
438
438
visitAllDependencies ([&](const Node &N) { BV.set (N.getID ()); });
439
439
}
440
440
441
- // / Uses \ref visitAllDependencies to aggregate the individual cost of this
442
- // / node and all of its dependencies.
443
- // /
444
- // / This is cached.
445
- CostType getFullCost () const ;
446
-
447
441
private:
448
442
void markAsGraphEntry () { IsGraphEntry = true ; }
449
443
@@ -454,9 +448,6 @@ class SplitGraph::Node {
454
448
bool IsEntryFnCC : 1 ;
455
449
bool IsGraphEntry : 1 ;
456
450
457
- // TODO: Cache dependencies as well?
458
- mutable CostType FullCost = 0 ;
459
-
460
451
// TODO: Use a single sorted vector (with all incoming/outgoing edges grouped
461
452
// together)
462
453
EdgesVec IncomingEdges;
@@ -485,16 +476,6 @@ void SplitGraph::Node::visitAllDependencies(
485
476
}
486
477
}
487
478
488
- CostType SplitGraph::Node::getFullCost () const {
489
- if (FullCost)
490
- return FullCost;
491
-
492
- assert (FullCost == 0 );
493
- visitAllDependencies (
494
- [&](const Node &N) { FullCost += N.getIndividualCost (); });
495
- return FullCost;
496
- }
497
-
498
479
void SplitGraph::buildGraph (CallGraph &CG) {
499
480
SplitModuleTimer SMT (" buildGraph" , " graph construction" );
500
481
LLVM_DEBUG (
You can’t perform that action at this time.
0 commit comments