From 80564f761aafad4b5630d04dce6eb65499d5a01e Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 7 Dec 2009 21:19:33 +0000 Subject: [PATCH] Delete code accidentally left behind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90804 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TailDuplication.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp index 603ce38cf5a..b53ebecf191 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); - } - } } }