Added support for condition code loading/stroing in methods cpReg2Reg etc.
authorRuchira Sasanka <sasanka@students.uiuc.edu>
Thu, 18 Oct 2001 22:38:52 +0000 (22:38 +0000)
committerRuchira Sasanka <sasanka@students.uiuc.edu>
Thu, 18 Oct 2001 22:38:52 +0000 (22:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@911 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9RegClassInfo.cpp
lib/Target/SparcV9/SparcV9RegInfo.cpp

index ff01f355edc8d7e5eb3dbb2324837f34b18e44c6..3ff0779b5886579045f33cf7304322ad56abeaed 100644 (file)
@@ -42,7 +42,7 @@ void SparcIntRegClass::colorIGNode(IGNode * Node, bool IsColorUsedArr[]) const
       LR->setColor(  LR->getSuggestedColor() );
       return;
     }
-    else {                              // can't allocate the suggested col
+    else if ( DEBUG_RA ) {                // can't allocate the suggested col
       cerr << " Could NOT allocate the suggested color for LR ";
       LR->printSet(); cerr << endl;
     }
@@ -192,7 +192,7 @@ void SparcFloatRegClass::colorIGNode(IGNode * Node,bool IsColorUsedArr[]) const
       LR->setColor(  LR->getSuggestedColor() );
       return;
     }
-    else {                              // can't allocate the suggested col
+    else if (DEBUG_RA)  {                 // can't allocate the suggested col
       cerr << " Could NOT allocate the suggested color for LR ";
       LR->printSet(); cerr << endl;
     }
index 5756dc32fcb659883b4004903c69bc08cfa6bec4..60f4203c38cfff3042ce0437571f8050d88cd329 100644 (file)
@@ -621,6 +621,8 @@ MachineInstr * UltraSparcRegInfo::cpReg2RegMI(const unsigned SrcReg,
   switch( RegType ) {
     
   case IntRegType:
+  case IntCCRegType:
+  case FloatCCRegType: 
     MI = new MachineInstr(ADD, 3);
     MI->SetMachineOperand(0, SrcReg, false);
     MI->SetMachineOperand(1, SparcIntRegOrder::g0, false);
@@ -664,6 +666,8 @@ MachineInstr * UltraSparcRegInfo::cpReg2MemMI(const unsigned SrcReg,
   switch( RegType ) {
     
   case IntRegType:
+  case IntCCRegType:
+  case FloatCCRegType: 
     MI = new MachineInstr(STX, 3);
     MI->SetMachineOperand(0, DestPtrReg, false);
     MI->SetMachineOperand(1, SrcReg, false);
@@ -711,6 +715,8 @@ MachineInstr * UltraSparcRegInfo::cpMem2RegMI(const unsigned SrcPtrReg,
   switch( RegType ) {
     
   case IntRegType:
+  case IntCCRegType:
+  case FloatCCRegType: 
     MI = new MachineInstr(LDX, 3);
     MI->SetMachineOperand(0, SrcPtrReg, false);
     MI->SetMachineOperand(1, MachineOperand:: MO_SignExtendedImmed,