diff options
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc')
| -rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/RegAlloc/RegClass.cpp | 2 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index dc1c8690ee6..7d6fbb7cc98 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/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/llvm/lib/CodeGen/RegAlloc/RegClass.cpp b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp index 22466435946..3ee79e328e8 100644 --- a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/llvm/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;  | 

