mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
PhyRegAlloc.cpp: Added temp area resetting before every call
llvm-svn: 1499
This commit is contained in:
parent
b45080c5ba
commit
b6d7a004fa
@ -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 );
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user