protected CalculateSpillCost ( |
||
liveInterval | ||
return | void |
protected override void CalculateSpillCost(LiveInterval liveInterval)
{
int spillvalue = 0;
foreach (var use in liveInterval.UsePositions)
{
spillvalue += GetSpillCost(use, 100);
}
foreach (var use in liveInterval.DefPositions)
{
spillvalue += GetSpillCost(use, 115);
}
liveInterval.SpillValue = spillvalue;
}