private class ComputeInliningRelevance.Scope extends Object
process(NodeWorkList)
explicitly
excludes the nodes of child loops.Modifier and Type | Field and Description |
---|---|
private double |
fastPathMinProbability
The minimum probability along the most probable path in this scope.
|
ComputeInliningRelevance.Scope |
parent |
private double |
scopeRelevanceWithinParent
A measure of how important this scope is within its parent scope.
|
FixedNode |
start |
Constructor and Description |
---|
Scope(FixedNode start,
ComputeInliningRelevance.Scope parent) |
Modifier and Type | Method and Description |
---|---|
double |
computeInvokeRelevance(Invoke invoke)
The relevance of an invoke is the ratio between the invoke's probability and the current
scope's fastPathMinProbability, adjusted by scopeRelevanceWithinParent.
|
double |
getFastPathMinProbability() |
double |
getScopeRelevanceWithinParent()
Computes the ratio between the probabilities of the current scope's entry point and the
parent scope's fastPathMinProbability.
|
void |
process(NodeWorkList workList)
Processes all invokes in this scope by starting at the scope's start node and iterating
all fixed nodes.
|
public final ComputeInliningRelevance.Scope parent
private double fastPathMinProbability
private double scopeRelevanceWithinParent
public Scope(FixedNode start, ComputeInliningRelevance.Scope parent)
public double getFastPathMinProbability()
public double getScopeRelevanceWithinParent()
public void process(NodeWorkList workList)
public double computeInvokeRelevance(Invoke invoke)