forked from OSchip/llvm-project
parent
e3ae25b3d8
commit
5026bc3a86
|
@ -443,10 +443,9 @@ MachineBasicBlock *PHIElimination::SplitCriticalEdge(MachineBasicBlock *A,
|
|||
MachineFunction *MF = A->getParent();
|
||||
MachineBasicBlock *NMBB = MF->CreateMachineBasicBlock(BB);
|
||||
MF->push_back(NMBB);
|
||||
const unsigned NewNum = NMBB->getNumber();
|
||||
DEBUG(errs() << "PHIElimination splitting critical edge:"
|
||||
" BB#" << A->getNumber()
|
||||
<< " -- BB#" << NewNum
|
||||
<< " -- BB#" << NMBB->getNumber()
|
||||
<< " -- BB#" << B->getNumber() << '\n');
|
||||
|
||||
A->ReplaceUsesOfBlockWith(B, NMBB);
|
||||
|
|
Loading…
Reference in New Issue