Remove unused function HexagonEarlyIfConversion::replacePhiEdges. NFC.

llvm-svn: 330678
This commit is contained in:
Eric Christopher 2018-04-24 02:10:59 +00:00
parent 5a0a40b8cb
commit b9733d0f7c
1 changed files with 0 additions and 15 deletions

View File

@ -208,7 +208,6 @@ namespace {
void removeBlock(MachineBasicBlock *B); void removeBlock(MachineBasicBlock *B);
void eliminatePhis(MachineBasicBlock *B); void eliminatePhis(MachineBasicBlock *B);
void replacePhiEdges(MachineBasicBlock *OldB, MachineBasicBlock *NewB);
void mergeBlocks(MachineBasicBlock *PredB, MachineBasicBlock *SuccB); void mergeBlocks(MachineBasicBlock *PredB, MachineBasicBlock *SuccB);
void simplifyFlowGraph(const FlowPattern &FP); 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, void HexagonEarlyIfConversion::mergeBlocks(MachineBasicBlock *PredB,
MachineBasicBlock *SuccB) { MachineBasicBlock *SuccB) {
DEBUG(dbgs() << "Merging blocks " << PrintMB(PredB) << " and " DEBUG(dbgs() << "Merging blocks " << PrintMB(PredB) << " and "