diff options
| author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-15 19:11:31 +0000 | 
|---|---|---|
| committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-15 19:11:31 +0000 | 
| commit | 970886e7388c6b90a3fa42f97bd6381b914b34a2 (patch) | |
| tree | 3b906814fb97c95d9a210dc256919a4d367c805a /llvm/lib/Target/Sparc/SparcRegInfo.cpp | |
| parent | 86b2ad4b7c394a6682182a78dc488055ee7c6912 (diff) | |
| download | bcm5719-llvm-970886e7388c6b90a3fa42f97bd6381b914b34a2.tar.gz bcm5719-llvm-970886e7388c6b90a3fa42f97bd6381b914b34a2.zip  | |
modified printing of debug messages
llvm-svn: 593
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRegInfo.cpp | 78 | 
1 files changed, 0 insertions, 78 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp index fe6ec235fa4..0b30e5c1af6 100644 --- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp @@ -237,81 +237,3 @@ void SparcFloatRegClass::colorIGNode(IGNode * Node,bool IsColorUsedArr[]) const - - - - -#if 0 - -//----------------------------------------------------------------------------- -// Float Register Class -//----------------------------------------------------------------------------- - -void SparcFloatRegClass::colorIGNode(IGNode * Node,bool IsColorUsedArr[]) const -{ - -  /* Algorithm: -  Record the color of all neighbors. - -  Single precision can use f0 - f31 -  Double precision can use f0 - f63 - -  if LR is a double, try to allocate f32 - f63. -  if the above attempt fails, or Value is single presion, try to allcoate  -    f0 - f31. - -      */ - -  unsigned NumNeighbors =  Node->getNumOfNeighbors();   // total # of neighbors - -  for(unsigned n=0; n < NumNeighbors; n++) {            // for each neigh  -    IGNode *NeighIGNode = Node->getAdjIGNode(n); -    if( NeighIGNode->hasColor() ) {                     // if neigh has a color -      IsColorUsedArr[ NeighIGNode->getColor() ] = true; // record that color -      if( NeighIGNode->getTypeID() == Type::DoubleTyID ) -	IsColorUsedArr[ (NeighIGNode->getColor()) + 1 ] = true;   -    } -  } - - -  unsigned SearchStart;                 // start pos of color in pref-order -  bool ColorFound= false;               // have we found a color yet? -  unsigned c;     - - -  if( Node->getTypeID() == Type::DoubleTyID ) {        // if value is a double - -    // search the double only reigon (f32 - f63) -     for( c=32; c < 64; c+= 2) {  -      if( ! IsColorUsedArr[ c ] ) { ColorFound = true; break; } -    } - -     // search f0 - f31 region -    if( ! ColorFound )  {                // if color not found -     for( c=0; c < 32; c+= 2) {  -      if( ! IsColorUsedArr[ c ] ) { ColorFound = true; break; } -     } -    } - -  } - -  else {  // value is Single - -    for( c=0; c < 32; c++) {  -      if( ! IsColorUsedArr[ c ] ) { ColorFound = true; break; } -    } -  } -   - -  if( ColorFound)  -    Node->setColor(c);                  // first color found in preferred order -  else -    Node->markForSpill();               // no color found - must spill - - -  if( DEBUG_RA)                   -    UltraSparcRegInfo::printReg( Node->getParentLR() ); - -} - -#endif  | 

