PhyRegAlloc.cpp: Added temp area resetting before every call

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ruchira Sasanka 2002-01-07 21:09:06 +00:00
parent bf915524a1
commit 6a3db8c117
4 changed files with 6 additions and 4 deletions

View File

@ -466,7 +466,8 @@ void PhyRegAlloc::updateMachineCode()
// Tmp stack poistions are needed by some calls that have spilled args // Tmp stack poistions are needed by some calls that have spilled args
// So reset it before we call each such method // So reset it before we call each such method
// TODO: mcInfo.popAllTempValues(TM); //
mcInfo.popAllTempValues(TM);
if( (TM.getInstrInfo()).isCall( Opcode ) ) if( (TM.getInstrInfo()).isCall( Opcode ) )
MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI ); MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI );

View File

@ -165,7 +165,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
if( ! IGNode->isOnStack() ) { if( ! IGNode->isOnStack() ) {
unsigned SpillCost = IGNode->getParentLR()->getSpillCost(); long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
if( MinSpillCost == -1) { // for the first IG node if( MinSpillCost == -1) { // for the first IG node
MinSpillCost = SpillCost; MinSpillCost = SpillCost;

View File

@ -466,7 +466,8 @@ void PhyRegAlloc::updateMachineCode()
// Tmp stack poistions are needed by some calls that have spilled args // Tmp stack poistions are needed by some calls that have spilled args
// So reset it before we call each such method // So reset it before we call each such method
// TODO: mcInfo.popAllTempValues(TM); //
mcInfo.popAllTempValues(TM);
if( (TM.getInstrInfo()).isCall( Opcode ) ) if( (TM.getInstrInfo()).isCall( Opcode ) )
MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI ); MRI.colorCallArgs( MInst, LRI, AI, *this, *BBI );

View File

@ -165,7 +165,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
if( ! IGNode->isOnStack() ) { if( ! IGNode->isOnStack() ) {
unsigned SpillCost = IGNode->getParentLR()->getSpillCost(); long SpillCost = (long) IGNode->getParentLR()->getSpillCost();
if( MinSpillCost == -1) { // for the first IG node if( MinSpillCost == -1) { // for the first IG node
MinSpillCost = SpillCost; MinSpillCost = SpillCost;