Changed code to ignore Phi Nodes in PhyRegAlloc

llvm-svn: 1253
This commit is contained in:
Ruchira Sasanka 2001-11-10 21:21:36 +00:00
parent bf341d2d5d
commit bf9791fe90
2 changed files with 8 additions and 1 deletions

View File

@ -355,6 +355,11 @@ void PhyRegAlloc::updateMachineCode()
MachineInstr *MInst = *MInstIterator;
// do not process Phis
if( (TM.getInstrInfo()).isPhi( MInst->getOpCode()) )
continue;
// if this machine instr is call, insert caller saving code
if( (TM.getInstrInfo()).isCall( MInst->getOpCode()) )
@ -579,7 +584,7 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR,
} // if !DEF
cerr << "\nFor Inst " << *MInst;
cerr << "\n - SPILLED LR:"; LR->printSet();
cerr << " - SPILLED LR: "; LR->printSet();
cerr << "\n - Added Instructions:";
if( MIBef ) cerr << *MIBef;
cerr << *AdIMid;

View File

@ -82,6 +82,8 @@ void RegClass::pushAllIGNodes()
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();
cerr << "\nConstrained IG Node found !@!" << IGNodeSpill->getIndex();
} while( NeedMoreSpills ); // repeat until we have pushed all
}