PhyRegAlloc.cpp: Added temp area resetting before every call
authorRuchira Sasanka <sasanka@students.uiuc.edu>
Mon, 7 Jan 2002 21:09:06 +0000 (21:09 +0000)
committerRuchira Sasanka <sasanka@students.uiuc.edu>
Mon, 7 Jan 2002 21:09:06 +0000 (21:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1499 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
lib/CodeGen/RegAlloc/RegClass.cpp
lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
lib/Target/SparcV9/RegAlloc/RegClass.cpp

index dc1c8690ee6977bab9e5a70e455b4613683739c0..7d6fbb7cc98dcec3af7565cef14d5ff90cf16727 100644 (file)
@@ -466,7 +466,8 @@ void PhyRegAlloc::updateMachineCode()
        
        // Tmp stack poistions are needed by some calls that have spilled args
        // So reset it before we call each such method
-       // TODO: mcInfo.popAllTempValues(TM);  
+       //
+       mcInfo.popAllTempValues(TM);  
        
        if( (TM.getInstrInfo()).isCall( Opcode ) )
          MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI );
index 2246643594612f06ed6a1c8b6e333402118314d7..3ee79e328e863715d83b29a3d96cb958a38ca275 100644 (file)
@@ -165,7 +165,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
 
     if( ! IGNode->isOnStack() ) {
 
-      unsigned SpillCost = IGNode->getParentLR()->getSpillCost();
+      long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
     
       if( MinSpillCost == -1) {         // for the first IG node
        MinSpillCost = SpillCost;
index dc1c8690ee6977bab9e5a70e455b4613683739c0..7d6fbb7cc98dcec3af7565cef14d5ff90cf16727 100644 (file)
@@ -466,7 +466,8 @@ void PhyRegAlloc::updateMachineCode()
        
        // Tmp stack poistions are needed by some calls that have spilled args
        // So reset it before we call each such method
-       // TODO: mcInfo.popAllTempValues(TM);  
+       //
+       mcInfo.popAllTempValues(TM);  
        
        if( (TM.getInstrInfo()).isCall( Opcode ) )
          MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI );
index 2246643594612f06ed6a1c8b6e333402118314d7..3ee79e328e863715d83b29a3d96cb958a38ca275 100644 (file)
@@ -165,7 +165,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
 
     if( ! IGNode->isOnStack() ) {
 
-      unsigned SpillCost = IGNode->getParentLR()->getSpillCost();
+      long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
     
       if( MinSpillCost == -1) {         // for the first IG node
        MinSpillCost = SpillCost;