summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/CodeGen/TailDuplication.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/TailDuplication.cpp b/llvm/lib/CodeGen/TailDuplication.cpp
index 603ce38cf5a..b53ebecf191 100644
--- a/llvm/lib/CodeGen/TailDuplication.cpp
+++ b/llvm/lib/CodeGen/TailDuplication.cpp
@@ -244,16 +244,6 @@ bool TailDuplicatePass::TailDuplicateBlocks(MachineFunction &MF) {
if (UseMI->getParent() == DefBB)
continue;
SSAUpdate.RewriteUse(UseMO);
- while (!NewPHIs.empty()) {
- MachineInstr *NewPHI = NewPHIs.back();
- NewPHIs.pop_back();
- unsigned PHIDef = NewPHI->getOperand(0).getReg();
- for (unsigned j = 1, ee = NewPHI->getNumOperands(); j != ee;
- j += 2) {
- if (NewPHI->getOperand(j).getReg() == VReg)
- NewPHI->getOperand(j).setReg(PHIDef);
- }
- }
}
}
OpenPOWER on IntegriCloud