diff options
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/RegAlloc/RegClass.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 3 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/RegClass.cpp | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index dc1c8690ee..7d6fbb7cc9 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -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 ); diff --git a/lib/CodeGen/RegAlloc/RegClass.cpp b/lib/CodeGen/RegAlloc/RegClass.cpp index 2246643594..3ee79e328e 100644 --- a/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/lib/CodeGen/RegAlloc/RegClass.cpp @@ -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; diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index dc1c8690ee..7d6fbb7cc9 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -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 ); diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.cpp b/lib/Target/SparcV9/RegAlloc/RegClass.cpp index 2246643594..3ee79e328e 100644 --- a/lib/Target/SparcV9/RegAlloc/RegClass.cpp +++ b/lib/Target/SparcV9/RegAlloc/RegClass.cpp @@ -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; |