void RegClass::pushAllIGNodes()
{
bool NeedMoreSpills;
void RegClass::pushAllIGNodes()
{
bool NeedMoreSpills;
- IGNode *IGNodeSpill, *IGNode;
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
- //get IGNode with min spill cost
+ //get node with min spill cost
IGNodeSpill = getIGNodeWithMinSpillCost();
IGNodeSpill = getIGNodeWithMinSpillCost();
- // push IGNode on to stack
+ // push that node on to stack
IGNodeStack.push( IGNodeSpill );
IGNodeStack.push( IGNodeSpill );
- // set OnStack flag and decrement degree of neighs
- IGNode->pushOnStack();
+ // set its OnStack flag and decrement degree of neighs
+ IGNodeSpill->pushOnStack();
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();
void RegClass::pushAllIGNodes()
{
bool NeedMoreSpills;
void RegClass::pushAllIGNodes()
{
bool NeedMoreSpills;
- IGNode *IGNodeSpill, *IGNode;
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
- //get IGNode with min spill cost
+ //get node with min spill cost
IGNodeSpill = getIGNodeWithMinSpillCost();
IGNodeSpill = getIGNodeWithMinSpillCost();
- // push IGNode on to stack
+ // push that node on to stack
IGNodeStack.push( IGNodeSpill );
IGNodeStack.push( IGNodeSpill );
- // set OnStack flag and decrement degree of neighs
- IGNode->pushOnStack();
+ // set its OnStack flag and decrement degree of neighs
+ IGNodeSpill->pushOnStack();
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();