aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TailDuplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/TailDuplication.cpp')
-rw-r--r--lib/CodeGen/TailDuplication.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp
index 603ce38cf5..b53ebecf19 100644
--- a/lib/CodeGen/TailDuplication.cpp
+++ b/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);
- }
- }
}
}