[llvm] r330678 - Remove unused function HexagonEarlyIfConversion::replacePhiEdges. NFC.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 19:10:59 PDT 2018
Author: echristo
Date: Mon Apr 23 19:10:59 2018
New Revision: 330678
URL: http://llvm.org/viewvc/llvm-project?rev=330678&view=rev
Log:
Remove unused function HexagonEarlyIfConversion::replacePhiEdges. NFC.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp?rev=330678&r1=330677&r2=330678&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp Mon Apr 23 19:10:59 2018
@@ -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::eliminate
}
}
-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 "
More information about the llvm-commits
mailing list