// 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 );
if( ! IGNode->isOnStack() ) {
- unsigned SpillCost = IGNode->getParentLR()->getSpillCost();
+ long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
if( MinSpillCost == -1) { // for the first IG node
MinSpillCost = SpillCost;
// 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 );
if( ! IGNode->isOnStack() ) {
- unsigned SpillCost = IGNode->getParentLR()->getSpillCost();
+ long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
if( MinSpillCost == -1) { // for the first IG node
MinSpillCost = SpillCost;