Added support for caller saving
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@847 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
index 4efe30e..d8ec247 100644
--- a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
+++ b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
@@ -7,7 +7,7 @@
IG = NULL;
Size = 0;
if( DEBUG_RA) {
- cerr << "Interference graph created!" << endl;
+ cout << "Interference graph created!" << endl;
}
}
@@ -65,7 +65,7 @@
char *val;
if( DEBUG_RA > 1)
- cerr << "setting intf for: [" << row << "][" << col << "]" << endl;
+ cout << "setting intf for: [" << row << "][" << col << "]" << endl;
( row > col) ? val = &IG[row][col]: val = &IG[col][row];
@@ -118,9 +118,9 @@
assertIGNode( SrcNode );
if( DEBUG_RA > 1) {
- cerr << "Merging LRs: \""; LR1->printSet();
- cerr << "\" and \""; LR2->printSet();
- cerr << "\"" << endl;
+ cout << "Merging LRs: \""; LR1->printSet();
+ cout << "\" and \""; LR2->printSet();
+ cout << "\"" << endl;
}
unsigned SrcDegree = SrcNode->getNumOfNeighbors();
@@ -147,10 +147,10 @@
setInterference(LR1, LROfNeigh );
}
- //cerr<< " #Neighs - Neigh: ["<< NeighNode->getIndex()<< "] ";
- //cerr << NeighNode->getNumOfNeighbors();
- //cerr << " Dest: [" << DestNode->getIndex() << "] ";
- //cerr << DestNode->getNumOfNeighbors() << endl;
+ //cout<< " #Neighs - Neigh: ["<< NeighNode->getIndex()<< "] ";
+ //cout << NeighNode->getNumOfNeighbors();
+ //cout << " Dest: [" << DestNode->getIndex() << "] ";
+ //cout << DestNode->getNumOfNeighbors() << endl;
}
@@ -193,13 +193,13 @@
if( ! Node )
continue; // skip empty rows
- cerr << " [" << i << "] ";
+ cout << " [" << i << "] ";
for( unsigned int j=0; j < Size; j++) {
if( j >= i) break;
- if( IG[i][j] ) cerr << "(" << i << "," << j << ") ";
+ if( IG[i][j] ) cout << "(" << i << "," << j << ") ";
}
- cerr << endl;
+ cout << endl;
}
}
@@ -215,10 +215,10 @@
if( ! Node )
continue;
- cerr << " [" << Node->getIndex() << "] ";
+ cout << " [" << Node->getIndex() << "] ";
(Node->getParentLR())->printSet();
//int Deg = Node->getCurDegree();
- cerr << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">" << endl;
+ cout << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">" << endl;
}
}