mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Changed code to ignore Phi Nodes in PhyRegAlloc
llvm-svn: 1253
This commit is contained in:
parent
bf341d2d5d
commit
bf9791fe90
@ -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;
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user