Delete dead code.

llvm-svn: 52494
This commit is contained in:
Dan Gohman 2008-06-19 17:18:39 +00:00
parent 5eeafbc3f7
commit 68c5bdd4f5

View File

@ -134,10 +134,6 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
}
// Insert load in place of the phi and replace all uses.
BasicBlock::iterator InsertPt;
for (InsertPt = P->getParent()->getInstList().begin();
isa<PHINode>(InsertPt); ++InsertPt)
; /*noop */
Value *V = new LoadInst(Slot, P->getName()+".reload", P);
P->replaceAllUsesWith(V);