diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2002-01-07 21:09:06 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2002-01-07 21:09:06 +0000 |
commit | a42a7e78b65c469db8374b251ef7099b6bb54c0a (patch) | |
tree | d9a4a419412b7c5e93111a944de275ccfd81d0a5 /llvm/lib/CodeGen/RegAlloc | |
parent | f4c2dddcda644cf4aca9d2827772e4b9e6607034 (diff) | |
download | bcm5719-llvm-a42a7e78b65c469db8374b251ef7099b6bb54c0a.tar.gz bcm5719-llvm-a42a7e78b65c469db8374b251ef7099b6bb54c0a.zip |
PhyRegAlloc.cpp: Added temp area resetting before every call
llvm-svn: 1499
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; |