forked from OSchip/llvm-project
Remove unused function HexagonEarlyIfConversion::replacePhiEdges. NFC.
llvm-svn: 330678
This commit is contained in:
parent
5a0a40b8cb
commit
b9733d0f7c
|
@ -208,7 +208,6 @@ namespace {
|
|||
|
||||
void removeBlock(MachineBasicBlock *B);
|
||||
void eliminatePhis(MachineBasicBlock *B);
|
||||
void replacePhiEdges(MachineBasicBlock *OldB, MachineBasicBlock *NewB);
|
||||
void mergeBlocks(MachineBasicBlock *PredB, MachineBasicBlock *SuccB);
|
||||
void simplifyFlowGraph(const FlowPattern &FP);
|
||||
|
||||
|
@ -1006,20 +1005,6 @@ void HexagonEarlyIfConversion::eliminatePhis(MachineBasicBlock *B) {
|
|||
}
|
||||
}
|
||||
|
||||
void HexagonEarlyIfConversion::replacePhiEdges(MachineBasicBlock *OldB,
|
||||
MachineBasicBlock *NewB) {
|
||||
for (auto I = OldB->succ_begin(), E = OldB->succ_end(); I != E; ++I) {
|
||||
MachineBasicBlock *SB = *I;
|
||||
MachineBasicBlock::iterator P, N = SB->getFirstNonPHI();
|
||||
for (P = SB->begin(); P != N; ++P) {
|
||||
MachineInstr &PN = *P;
|
||||
for (MachineOperand &MO : PN.operands())
|
||||
if (MO.isMBB() && MO.getMBB() == OldB)
|
||||
MO.setMBB(NewB);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void HexagonEarlyIfConversion::mergeBlocks(MachineBasicBlock *PredB,
|
||||
MachineBasicBlock *SuccB) {
|
||||
DEBUG(dbgs() << "Merging blocks " << PrintMB(PredB) << " and "
|
||||
|
|
Loading…
Reference in New Issue