-void SparcIntRegClass::colorIGNode(IGNode * Node, bool IsColorUsedArr[]) const
-{
- LiveRange * LR = Node->getParentLR();
- unsigned NumNeighbors = Node->getNumOfNeighbors(); // total # of neighbors
-
- for(unsigned n=0; n < NumNeighbors; n++) { // for each neigh
- IGNode *NeighIGNode = Node->getAdjIGNode(n);
- LiveRange *NeighLR = NeighIGNode->getParentLR();
-
- if( NeighLR->hasColor() ) // if has a color
- IsColorUsedArr[ NeighLR->getColor() ] = true; // record that color
-
- else if( NeighLR->hasSuggestedColor() ) {
-
- // if the neighbout can use the suggested color
- if( NeighLR-> isSuggestedColorUsable() )
- IsColorUsedArr[ NeighLR->getSuggestedColor() ] = true;
- }
- }
+void SparcIntRegClass::colorIGNode(IGNode * Node, vector<bool> &IsColorUsedArr) const {
+ LiveRange *LR = Node->getParentLR();